diff --git a/src/Context/SilverStripeContext.php b/src/Context/SilverStripeContext.php index 5a8ecfc..68e1b13 100644 --- a/src/Context/SilverStripeContext.php +++ b/src/Context/SilverStripeContext.php @@ -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);