Skip to content

Commit da55466

Browse files
authored
Suppress UnknownErrorException in _closeSession
1 parent f05c5c2 commit da55466

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
use Facebook\WebDriver\Exception\InvalidElementStateException;
3333
use Facebook\WebDriver\Exception\InvalidSelectorException;
3434
use Facebook\WebDriver\Exception\NoSuchElementException;
35+
use Facebook\WebDriver\Exception\UnknownErrorException;
3536
use Facebook\WebDriver\Exception\UnknownServerException;
3637
use Facebook\WebDriver\Exception\WebDriverCurlException;
3738
use Facebook\WebDriver\Interactions\WebDriverActions;
@@ -1533,6 +1534,8 @@ public function _closeSession($webDriver = null)
15331534
unset($webDriver);
15341535
} catch (UnknownServerException $e) {
15351536
// Session already closed so nothing to do
1537+
} catch (UnknownErrorException $e) {
1538+
// Session already closed so nothing to do
15361539
}
15371540
}
15381541

0 commit comments

Comments
 (0)