Merge pull request #190 from creative-commoners/pulls/4/start-driver-before-scenario

Fix WebDriverSession autostart
This commit is contained in:
Aaron Carlino 2020-03-17 16:27:23 +13:00 committed by GitHub
commit a1d77988ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -240,6 +240,11 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
);
}
$webDriverSession = $this->getSession();
if (!$webDriverSession->isStarted()) {
$webDriverSession->start();
}
$state = $this->getTestSessionState();
$this->testSessionEnvironment->startTestSession($state);