Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Dragging one element to another.
- await browser.actions().mouseDown(source).perform();
- await browser.sleep(PageHelper.timeout.xs);
- await browser.actions()
- .mouseMove(destination, { x: 0, y: -25 })
- .mouseMove(destination, { x: 0, y: -15 })
- .mouseMove(destination, { x: 0, y: -5 }).perform();
- await browser.sleep(PageHelper.timeout.xs);
- await browser.actions().mouseUp().perform();
- await browser.sleep(PageHelper.timeout.xs);
Add Comment
Please, Sign In to add comment