Skip to content

Commit

Permalink
Merge pull request #353 from mvorisek/no_getid
Browse files Browse the repository at this point in the history
Pass `\WebDriver\Element` always as an object for execute
  • Loading branch information
aik099 authored May 19, 2022
2 parents e5f8421 + 4ee4eca commit 5d15043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5d15043

Please sign in to comment.