@@ -29,7 +29,12 @@ class RemoteWebDriverCreateTest extends WebDriverTestCase
2929
3030 public function testShouldStartBrowserAndCreateInstanceOfRemoteWebDriver ()
3131 {
32- $ this ->driver = RemoteWebDriver::create ($ this ->serverUrl , $ this ->desiredCapabilities , 30000 , 33370 );
32+ $ this ->driver = RemoteWebDriver::create (
33+ $ this ->serverUrl ,
34+ $ this ->desiredCapabilities ,
35+ $ this ->connectionTimeout ,
36+ $ this ->requestTimeout
37+ );
3338
3439 $ this ->assertInstanceOf (RemoteWebDriver::class, $ this ->driver );
3540
@@ -51,8 +56,8 @@ public function testShouldCreateWebDriverWithRequiredCapabilities()
5156 $ this ->driver = RemoteWebDriver::create (
5257 $ this ->serverUrl ,
5358 $ this ->desiredCapabilities ,
54- null ,
55- null ,
59+ $ this -> connectionTimeout ,
60+ $ this -> requestTimeout ,
5661 null ,
5762 null ,
5863 $ requiredCapabilities
@@ -64,7 +69,12 @@ public function testShouldCreateWebDriverWithRequiredCapabilities()
6469 public function testShouldCreateInstanceFromExistingSessionId ()
6570 {
6671 // Create driver instance and load page "index.html"
67- $ originalDriver = RemoteWebDriver::create ($ this ->serverUrl , $ this ->desiredCapabilities );
72+ $ originalDriver = RemoteWebDriver::create (
73+ $ this ->serverUrl ,
74+ $ this ->desiredCapabilities ,
75+ $ this ->connectionTimeout ,
76+ $ this ->requestTimeout
77+ );
6878 $ originalDriver ->get ($ this ->getTestPageUrl ('index.html ' ));
6979 $ this ->assertContains ('/index.html ' , $ originalDriver ->getCurrentURL ());
7080
0 commit comments