Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit c30ddcd

Browse files
authored
Defaulting web driver to Selenium. (#1729)
1 parent 0b869ca commit c30ddcd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ behat:
1616
tags: '~ajax&&~experimental&&~lightningextension'
1717
extra: ''
1818
# May be chrome, selenium, phantomjs.
19-
web-driver: chrome
19+
web-driver: selenium
2020

2121
bin.path: vendor/bin
2222

src/Robo/Commands/Tests/BehatCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ protected function launchChrome() {
161161
$chrome_bin = $this->findChrome();
162162
$this->checkChromeVersion($chrome_bin);
163163
$this->logger->info("Launching headless chrome...");
164+
$this->logger->warning("Headless Chrome integration is experimental and may not be stable.");
164165
$this->getContainer()
165166
->get('executor')
166167
->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")

template/tests/behat/example.local.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ local:
2525
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
2626
Behat\MinkExtension:
2727
browser_name: chrome
28-
javascript_session: default
28+
# Change to "default" for headless Chrome.
29+
javascript_session: selenium2
2930
# configure the base url for your site
3031
base_url: ${project.local.uri}
3132
# set default command for "Show last response" step.

0 commit comments

Comments
 (0)