File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
"codeception/codeception" : " ^5.0.8" ,
26
26
"codeception/lib-web" : " ^1.0.1" ,
27
27
"codeception/stub" : " ^4.0" ,
28
- "php-webdriver/webdriver" : " ^1.8 .0" ,
28
+ "php-webdriver/webdriver" : " ^1.14 .0" ,
29
29
"phpunit/phpunit" : " ^10.0 || ^11.0"
30
30
},
31
31
"suggest" : {
Original file line number Diff line number Diff line change 35
35
use Exception ;
36
36
use Facebook \WebDriver \Cookie ;
37
37
use Facebook \WebDriver \Cookie as WebDriverCookie ;
38
+ use Facebook \WebDriver \Exception \Internal \UnexpectedResponseException ;
38
39
use Facebook \WebDriver \Exception \InvalidElementStateException ;
39
40
use Facebook \WebDriver \Exception \InvalidSelectorException ;
40
41
use Facebook \WebDriver \Exception \NoSuchElementException ;
41
42
use Facebook \WebDriver \Exception \UnknownErrorException ;
42
- use Facebook \WebDriver \Exception \WebDriverCurlException ;
43
43
use Facebook \WebDriver \Interactions \WebDriverActions ;
44
44
use Facebook \WebDriver \Remote \LocalFileDetector ;
45
45
use Facebook \WebDriver \Remote \RemoteWebDriver ;
@@ -1688,7 +1688,7 @@ public function _initializeSession(): void
1688
1688
1689
1689
$ this ->setBaseElement ();
1690
1690
$ this ->initialWindowSize ();
1691
- } catch (WebDriverCurlException $ exception ) {
1691
+ } catch (UnexpectedResponseException $ exception ) {
1692
1692
codecept_debug ('Curl error: ' . $ exception ->getMessage ());
1693
1693
throw new ConnectionException (
1694
1694
"Can't connect to WebDriver at {$ this ->wdHost }. "
You can’t perform that action at this time.
0 commit comments