Skip to content

Commit

Permalink
Selenium2Driver::dragTo() does not need syn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 3, 2023
1 parent affb7ea commit fac3c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ public function dragTo($sourceXpath, $destinationXpath)
element.dispatchEvent(event);
}({{ELEMENT}}));
JS;
$this->withSyn()->executeJsOnElement($source, $script);
$this->executeJsOnElement($source, $script);

$this->wdSession->buttondown();
$this->wdSession->moveto(array(
Expand All @@ -949,7 +949,7 @@ public function dragTo($sourceXpath, $destinationXpath)
element.dispatchEvent(event);
}({{ELEMENT}}));
JS;
$this->withSyn()->executeJsOnElement($destination, $script);
$this->executeJsOnElement($destination, $script);
}

/**
Expand Down

0 comments on commit fac3c28

Please sign in to comment.