From 6e83a8df9bc61c6d98e3a988c1bbce9d48a4e143 Mon Sep 17 00:00:00 2001 From: Valentin Clavreul Date: Wed, 13 Feb 2019 15:58:27 +0100 Subject: [PATCH] Fixes instaclick/php-webdriver#89 --- lib/WebDriver/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebDriver/Session.php b/lib/WebDriver/Session.php index 7d2a290..e78a4b6 100644 --- a/lib/WebDriver/Session.php +++ b/lib/WebDriver/Session.php @@ -464,7 +464,7 @@ public function execute() { // execute script if (func_num_args() > 0) { - $result = $this->curl('POST', '/execute', func_get_arg(1)); + $result = $this->curl('POST', '/execute', func_get_arg(0)); return $result['value']; }