Skip to content

Commit f648b37

Browse files
authored
Fix the BC layer for the legacy execute method
The legacy method gets an argument to be executed
1 parent d0c9aa5 commit f648b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/WebDriver/Session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ public function alert()
463463
public function execute()
464464
{
465465
// execute script
466-
if (func_num_args() === 0) {
467-
$result = $this->curl('POST', '/execute');
466+
if (func_num_args() > 0) {
467+
$result = $this->curl('POST', '/execute', func_get_arg(1));
468468

469469
return $result['value'];
470470
}

0 commit comments

Comments
 (0)