diff --git a/Features/Context/PlatformUI.php b/Features/Context/PlatformUI.php index 128f79d23..ddba580be 100644 --- a/Features/Context/PlatformUI.php +++ b/Features/Context/PlatformUI.php @@ -108,7 +108,13 @@ public function __construct($uri = self::PLATFORM_URI, $user = null, $password = */ public function beforeScenario() { - $this->getSession()->getDriver()->maximizeWindow(); + $session = $this->getSession(); + + if (!$session->isStarted()) { + $session->start(); + } + + $session->getDriver()->maximizeWindow(); } /**