Skip to content
Snippets Groups Projects
Commit 5dfd127c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed static web_Driver

parent f95d0d9f
No related branches found
No related tags found
5 merge requests!1645Development,!1635Development,!1634Development,!1631Development,!1628Resolve "Add more integration tests"
...@@ -9,7 +9,7 @@ use Facebook\WebDriver\Remote\RemoteWebDriver; ...@@ -9,7 +9,7 @@ use Facebook\WebDriver\Remote\RemoteWebDriver;
*/ */
trait SupportsBrowserStack trait SupportsBrowserStack
{ {
protected static $web_driver, $bs_local; protected static $bs_local;
/** /**
* Create the BrowserStack WebDriver instance. * Create the BrowserStack WebDriver instance.
*/ */
...@@ -23,12 +23,10 @@ trait SupportsBrowserStack ...@@ -23,12 +23,10 @@ trait SupportsBrowserStack
$this->bs_local->start($bs_local_args); $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", "https://$config[username]:$config[key]@hub-cloud.browserstack.com/wd/hub",
$config["capabilities"] $config["capabilities"]
); );
return $this->web_driver;
} }
/** /**
...@@ -39,9 +37,6 @@ trait SupportsBrowserStack ...@@ -39,9 +37,6 @@ trait SupportsBrowserStack
if (static::$bs_local && static::$bs_local->isRunning()) { if (static::$bs_local && static::$bs_local->isRunning()) {
static::$bs_local->stop(); static::$bs_local->stop();
} }
if (static::$web_driver) {
static::$web_driver->quit();
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment