Chrome and Behat
Getting Chrome run was “easy” thanks to this post
My install has behat running inside of a vagrant box so my behat.yml talks to Selenium running on my Mac and uses my Macs Chrome
default:
paths:
features: behat/features
bootstrap: features/bootstrap
formatter:
name: pretty
extensions:
Behat\MinkExtension\Extension:
default_session: selenium2
goutte: null
selenium2:
wd_host: "http://192.168.33.1:4444/wd/hub"
capabilities: { "browserName": "chrome", "browser": "chrome", "version": "25", 'chrome': {'switches':['--no-sandbox']}}
base_url: 'http://cms.dev:8000/'
browser_name: chrome
I placed chromedriver in /opt and just ran this
java -jar selenium-server-standalone-2.43.1.jar -Dwebdriver.chrome.driver="/opt/chromedriver"
That was it. Now in my vagrant box I can run behat to open the chrome browser which happens to be faster for me than Safari and Firefox on this mac.
comments powered by Disqus