Skip to content

Commit b6e002e

Browse files
committed
Merge pull request php-webdriver#160 from chaby1/master
fix chrome driver php5.4 interface signatures
2 parents d089ddf + 39d8be5 commit b6e002e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/chrome/ChromeDriver.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,18 @@ public function startSession($desired_capabilities) {
4141
$this->setSessionID($response->getSessionID());
4242
}
4343

44-
public static function create() {
44+
public static function create(
45+
$url = 'http://localhost:4444/wd/hub',
46+
$desired_capabilities = null,
47+
$timeout_in_ms = 300000
48+
) {
4549
throw new WebDriverException('Please use ChromeDriver::start() instead.');
4650
}
4751

48-
public static function createBySessionID() {
52+
public static function createBySessionID(
53+
$session_id,
54+
$url = 'http://localhost:4444/wd/hub'
55+
) {
4956
throw new WebDriverException('Please use ChromeDriver::start() instead.');
5057
}
5158
}

0 commit comments

Comments
 (0)