File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Magento/FunctionalTestingFramework/Suite/views Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,13 @@ class {{suiteName}} extends \Codeception\GroupObject
152
152
);
153
153
$availableSessions = RemoteWebDriver::getAllSessions($wdHost );
154
154
foreach ($availableSessions as $session ) {
155
- $remoteWebDriver = RemoteWebDriver::createBySessionID($session [' id' ], $wdHost );
156
- $remoteWebDriver -> quit ();
155
+ try {
156
+ $remoteWebDriver = RemoteWebDriver::createBySessionID($session [' id' ], $wdHost );
157
+ $remoteWebDriver -> quit ();
158
+ } catch (\Exception $exception) {
159
+ print(" Failed trying to quit WebDriver session. Exception message: " . $exception -> getMessage () . " Test execution will continue." . PHP_EOL);
160
+ // Session already closed so nothing to do
161
+ }
157
162
}
158
163
}
159
164
}
You can’t perform that action at this time.
0 commit comments