Skip to content

Commit

Permalink
Merge pull request #190 from creative-commoners/pulls/4/start-driver-…
Browse files Browse the repository at this point in the history
…before-scenario

Fix WebDriverSession autostart
  • Loading branch information
Aaron Carlino authored Mar 17, 2020
2 parents bd4a737 + e218fb8 commit a1d7798
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Context/SilverStripeContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ public function before(BeforeScenarioScope $event)
);
}

$webDriverSession = $this->getSession();
if (!$webDriverSession->isStarted()) {
$webDriverSession->start();
}

$state = $this->getTestSessionState();
$this->testSessionEnvironment->startTestSession($state);

Expand Down

0 comments on commit a1d7798

Please sign in to comment.