silverstripe-behat-extension/docs/chrome-behat.md
Ingo Schommer e01cfba18a Removed goutte driver from docs
Not a tested driver for framework tests. Might work, but we shouldn't recommend it. Plus, we'll need to add it as a composer requirement if mentioned in `behat.yml` (see #94).
2016-06-24 13:15:56 +12:00

921 B

#Running Behat Tests using Chrome If you would like to run Behat Tests using Google Chrome here are a few steps I went through to get that setup.

  1. Download the Google Chrome Webdriver

  2. Unzip the file, and place the chromedriver file in a known location.

  3. Now edit the behat.yml file and create a new profile for using Chrome by adding the following below the default profile.

      default_session: selenium2
      javascript_session: selenium2
      selenium2:
        browser: chrome
    SilverStripe\BehatExtension\Extension:
      screenshot_path: %behat.paths.base%/_artifacts/screenshots
  1. Now we need to use the new webdriver with Selenium.
java -jar selenium-server.jar -Dwebdriver.chrome.driver="/path/to/chromedriver"
  1. Now run your behat steps with the chrome profile.
behat @mysite --profile=chrome