diff --git a/src/Client.php b/src/Client.php index 6b25cef6..3285eda2 100644 --- a/src/Client.php +++ b/src/Client.php @@ -15,6 +15,7 @@ use Facebook\WebDriver\Exception\NoSuchElementException; use Facebook\WebDriver\Exception\TimeoutException; +use Facebook\WebDriver\Exception\WebDriverCurlException; use Facebook\WebDriver\JavaScriptExecutor; use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\WebDriver; @@ -105,7 +106,11 @@ public function __wakeup(): void public function __destruct() { - $this->quit(); + try { + $this->quit(); + } catch (WebDriverCurlException) { + // ignore + } } public function start(): void