File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3939use Facebook \WebDriver \Exception \InvalidElementStateException ;
4040use Facebook \WebDriver \Exception \InvalidSelectorException ;
4141use Facebook \WebDriver \Exception \NoSuchElementException ;
42- use Facebook \WebDriver \Exception \UnknownErrorException ;
42+ use Facebook \WebDriver \Exception \PhpWebDriverExceptionInterface ;
4343use Facebook \WebDriver \Interactions \WebDriverActions ;
4444use Facebook \WebDriver \Remote \LocalFileDetector ;
4545use Facebook \WebDriver \Remote \RemoteWebDriver ;
@@ -1749,7 +1749,7 @@ public function _closeSession($webDriver = null): void
17491749 try {
17501750 $ webDriver ->quit ();
17511751 unset($ webDriver );
1752- } catch (UnknownErrorException $ exception ) {
1752+ } catch (PhpWebDriverExceptionInterface $ exception ) {
17531753 // Session already closed so nothing to do
17541754 }
17551755 }
You can’t perform that action at this time.
0 commit comments