Skip to content

Commit 1f09d73

Browse files
authored
Fixed regression with JS driver autostart. (#126)
1 parent 885cc8d commit 1f09d73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JsTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ public function jsBeforeScenarioInit(BeforeScenarioScope $scope) {
3131
$session = $this->getSession();
3232
$driver = $session->getDriver();
3333

34-
$session->resizeWindow(1440, 900, 'current');
3534
if (!$driver->isStarted()) {
3635
$driver->start();
3736
}
37+
38+
$session->resizeWindow(1440, 900, 'current');
3839
}
3940
}
4041

0 commit comments

Comments
 (0)