diff --git a/composer.json b/composer.json index 2f78429d..e1535032 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "php": ">=7.2", "ext-json": "*", "behat/mink": "^1.9@dev", - "instaclick/php-webdriver": "^1.4" + "instaclick/php-webdriver": "^1.4.14" }, "require-dev": { "mink/driver-testsuite": "dev-master", diff --git a/src/Selenium2Driver.php b/src/Selenium2Driver.php index abf8333f..ee7f2e75 100755 --- a/src/Selenium2Driver.php +++ b/src/Selenium2Driver.php @@ -281,7 +281,7 @@ private function executeJsOnElement(Element $element, $script, $sync = true) $options = array( 'script' => $script, - 'args' => array(array('ELEMENT' => $element->getID())), + 'args' => array($element), ); if ($sync) {