diff --git a/src/Selenium2Driver.php b/src/Selenium2Driver.php index f42ae402..0bc7aa49 100755 --- a/src/Selenium2Driver.php +++ b/src/Selenium2Driver.php @@ -870,6 +870,7 @@ public function dragTo(string $sourceXpath, string $destinationXpath) $this->getWebDriverSession()->moveto(array( 'element' => $destination->getID() )); + $this->mouseOver($destinationXpath); $this->getWebDriverSession()->buttonup(); $script = <<findElement($destinationXpath); $this->withSyn()->executeJsOnElement($destination, $script); }