Skip to content

Commit

Permalink
Update WebDriver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eXorus authored Jul 12, 2024
1 parent 68bd128 commit 2e36fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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\PhpWebDriverExceptionInterface;
use Facebook\WebDriver\Interactions\WebDriverActions;
use Facebook\WebDriver\Remote\LocalFileDetector;
use Facebook\WebDriver\Remote\RemoteWebDriver;
Expand Down Expand Up @@ -1747,7 +1747,7 @@ public function _closeSession($webDriver = null): void
try {
$webDriver->quit();
unset($webDriver);
} catch (UnknownErrorException $exception) {
} catch (PhpWebDriverExceptionInterface $exception) {
// Session already closed so nothing to do
}
}
Expand Down

0 comments on commit 2e36fc5

Please sign in to comment.