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
152152 );
153153 $availableSessions = RemoteWebDriver::getAllSessions($wdHost );
154154 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+ }
157162 }
158163 }
159164 }
You can’t perform that action at this time.
0 commit comments