Skip to content

Commit

Permalink
Suppress UnknownErrorException in _closeSession
Browse files Browse the repository at this point in the history
  • Loading branch information
eXorus authored Apr 29, 2020
1 parent f05c5c2 commit da55466
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use Facebook\WebDriver\Exception\InvalidElementStateException;
use Facebook\WebDriver\Exception\InvalidSelectorException;
use Facebook\WebDriver\Exception\NoSuchElementException;
use Facebook\WebDriver\Exception\UnknownErrorException;
use Facebook\WebDriver\Exception\UnknownServerException;
use Facebook\WebDriver\Exception\WebDriverCurlException;
use Facebook\WebDriver\Interactions\WebDriverActions;
Expand Down Expand Up @@ -1533,6 +1534,8 @@ public function _closeSession($webDriver = null)
unset($webDriver);
} catch (UnknownServerException $e) {
// Session already closed so nothing to do
} catch (UnknownErrorException $e) {
// Session already closed so nothing to do
}
}

Expand Down

0 comments on commit da55466

Please sign in to comment.