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 39
39
use Facebook \WebDriver \Exception \InvalidElementStateException ;
40
40
use Facebook \WebDriver \Exception \InvalidSelectorException ;
41
41
use Facebook \WebDriver \Exception \NoSuchElementException ;
42
- use Facebook \WebDriver \Exception \UnknownErrorException ;
42
+ use Facebook \WebDriver \Exception \PhpWebDriverExceptionInterface ;
43
43
use Facebook \WebDriver \Interactions \WebDriverActions ;
44
44
use Facebook \WebDriver \Remote \LocalFileDetector ;
45
45
use Facebook \WebDriver \Remote \RemoteWebDriver ;
@@ -1749,7 +1749,7 @@ public function _closeSession($webDriver = null): void
1749
1749
try {
1750
1750
$ webDriver ->quit ();
1751
1751
unset($ webDriver );
1752
- } catch (UnknownErrorException $ exception ) {
1752
+ } catch (PhpWebDriverExceptionInterface $ exception ) {
1753
1753
// Session already closed so nothing to do
1754
1754
}
1755
1755
}
You can’t perform that action at this time.
0 commit comments