Commit 5dfd127c authored by Dominik Hebeler's avatar Dominik Hebeler

fixed static web_Driver

parent f95d0d9f
......@@ -9,7 +9,7 @@ use Facebook\WebDriver\Remote\RemoteWebDriver;
*/
trait SupportsBrowserStack
{
protected static $web_driver, $bs_local;
protected static $bs_local;
/**
* Create the BrowserStack WebDriver instance.
*/
......@@ -23,12 +23,10 @@ trait SupportsBrowserStack
$this->bs_local->start($bs_local_args);
}
$this->web_driver = RemoteWebDriver::create(
return RemoteWebDriver::create(
"https://$config[username]:$config[key]@hub-cloud.browserstack.com/wd/hub",
$config["capabilities"]
);
return $this->web_driver;
}
/**
......@@ -39,9 +37,6 @@ trait SupportsBrowserStack
if (static::$bs_local && static::$bs_local->isRunning()) {
static::$bs_local->stop();
}
if (static::$web_driver) {
static::$web_driver->quit();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment