We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a5fd3 commit df59762Copy full SHA for df59762
lib/WebDriver/Session.php
@@ -336,10 +336,14 @@ public function timeouts()
336
}
337
338
if (func_num_args() === 2) {
339
- $arg = array(
340
- 'type' => func_get_arg(0), // 'script' or 'implicit'
341
- 'ms' => func_get_arg(1), // timeout in milliseconds
342
- );
+ $arg = $this->w3c
+ ? array(
+ func_get_arg(0) => func_get_arg(1), // 'script' or 'implicit' => timeout in milliseconds
+ )
343
+ : array(
344
+ 'type' => func_get_arg(0), // 'script' or 'implicit'
345
+ 'ms' => func_get_arg(1), // timeout in milliseconds
346
+ );
347
348
$this->curl('POST', '/timeouts', $arg);
349
0 commit comments