Skip to content

Commit

Permalink
Defaulting web driver to Selenium.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jun 27, 2017
1 parent c7265f6 commit feda780
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ behat:
tags: '~ajax&&~experimental&&~lightningextension'
extra: ''
# May be chrome, selenium, phantomjs.
web-driver: chrome
web-driver: selenium

bin.path: vendor/bin

Expand Down
1 change: 1 addition & 0 deletions src/Robo/Commands/Tests/BehatCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ protected function launchChrome() {
$chrome_bin = $this->findChrome();
$this->checkChromeVersion($chrome_bin);
$this->logger->info("Launching headless chrome...");
$this->logger->warning("Headless Chrome integration is experimental and may not be stable.");
$this->getContainer()
->get('executor')
->execute("'$chrome_bin' --headless --disable-gpu --remote-debugging-port={$this->chromePort} https://www.chromestatus.com --disable-web-security --user-data-dir > /dev/null 2>&1")
Expand Down
3 changes: 2 additions & 1 deletion template/tests/behat/example.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ local:
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
Behat\MinkExtension:
browser_name: chrome
javascript_session: default
# Change to "default" for headless Chrome.
javascript_session: selenium2
# configure the base url for your site
base_url: ${project.local.uri}
# set default command for "Show last response" step.
Expand Down

0 comments on commit feda780

Please sign in to comment.