Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DragDrop {
- @Keyword
- def dragdrop(TestObject to,TestObject destination,Integer intX,Integer intY) {
- def eleto = MobileElementCommonHelper.findElement(to, timeout)
- def eledest = MobileElementCommonHelper.findElement(destination, timeout)
- WebDriver driver = DriverFactory.getWebDriver()
- Actions build = new Actions(driver)
- action.moveToElement(eleto);
- action.pause(Duration.ofSeconds(3));
- action.clickAndHold(eleto);
- action.moveByOffset(1, 0);
- action.moveToElement(eledest,intX,intY);
- // action.moveByOffset(40, 0);
- // .pause(Duration.ofSeconds(5));
- .release().perform();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement