Skip to content

Commit

Permalink
Dev: added webdriverhost as env variable for tests executed with vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
ptelu committed Mar 2, 2020
1 parent cde34ce commit 55185a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestHelper.php
Expand Up @@ -410,7 +410,8 @@ public function getWebDriver()
$webDriver = null;
do {
try {
$host = 'http://localhost:'.TestBaseClassWeb::$webPort.'/wd/hub'; // this is the default
$address = getenv('WEBDRIVERHOST') ?? 'localhost';
$host = 'http://' . $address . ':' . TestBaseClassWeb::$webPort . '/wd/hub'; // this is the default
$capabilities = DesiredCapabilities::firefox();
$profile = new FirefoxProfile();
$profile->setPreference(FirefoxPreferences::READER_PARSE_ON_LOAD_ENABLED, false);
Expand Down

0 comments on commit 55185a7

Please sign in to comment.