From 4ee4eca09cf948db48caea490e4cefc8df9912fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 19 Apr 2022 07:55:53 +0200 Subject: [PATCH] Pass WebDriver\Element always as an object for execute --- composer.json | 2 +- src/Selenium2Driver.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {