Balasubramanyan murugan Balasubramanyan murugan - 10 months ago 108
AngularJS Question

Protractor - is there a way to Do a click/drag event with x,y coordinates

I have diary page with rows (time) and columns(person). I want to drag and select three rows from top to bottom. Please help me on this.

Answer Source

You use actions to perform drag and drop in Protractor, which also includes offset x & y. Something like:

browser.actions().
    mouseDown(timeElement, {x: right, y: bottom}).
    mouseMove(personElement, {x: right, y: bottom}).
    mouseUp().
    perform();