mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Merge pull request #190 from creative-commoners/pulls/4/start-driver-before-scenario
Fix WebDriverSession autostart
This commit is contained in:
commit
a1d77988ce
@ -240,6 +240,11 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$webDriverSession = $this->getSession();
|
||||||
|
if (!$webDriverSession->isStarted()) {
|
||||||
|
$webDriverSession->start();
|
||||||
|
}
|
||||||
|
|
||||||
$state = $this->getTestSessionState();
|
$state = $this->getTestSessionState();
|
||||||
$this->testSessionEnvironment->startTestSession($state);
|
$this->testSessionEnvironment->startTestSession($state);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user