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

Commit 630863c

Browse files
andrewnicolsOndraM
authored andcommitted
Allow specification of firefox options for non-gecko
1 parent 1ad0697 commit 630863c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/functional/WebDriverTestCase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ protected function setUp()
6363
}
6464

6565
$this->desiredCapabilities->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);
66-
} elseif (getenv('GECKODRIVER') === '1') {
67-
$this->serverUrl = 'http://localhost:4444';
66+
} elseif ($browserName === WebDriverBrowserType::FIREFOX) {
67+
if (getenv('GECKODRIVER') === '1') {
68+
$this->serverUrl = 'http://localhost:4444';
69+
}
6870
$this->desiredCapabilities->setCapability(
6971
'moz:firefoxOptions',
7072
['args' => ['-headless']]

0 commit comments

Comments
 (0)