Skip to content

Commit 877c690

Browse files
committed
MQE-2143: [chrome81] dragAndDrop with x and y offsets no longer works
1 parent 1491ba9 commit 877c690

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,7 @@ public function dragAndDrop($source, $target, $xOffset = null, $yOffset = null)
756756
$travelY = intval($targetY - $snodes->getLocation()->getY());
757757

758758
$action = new WebDriverActions($this->webDriver);
759-
$action->moveToElement($snodes)->perform();
760-
$action->clickAndHold($snodes)->perform();
761-
$action->moveByOffset($travelX, $travelY)->perform();
762-
$action->release()->perform();
759+
$action->dragAndDropBy($snodes, $travelX, $travelY)->perform();
763760
} else {
764761
parent::dragAndDrop($source, $target);
765762
}

0 commit comments

Comments
 (0)