Home > Selenium Actions

Use Action class to perform drag and drop In selenium

Drag and drop activity performed by using Actions class. dragAndDrop(WebElement source, WebElement target) → It used to drag source element to target web element. dragAndDropBy(WebElement source, offsetX , offsetY) →  It used to drag source web element to targeted location using offset. Code snippet: [crayon-6767745a5a607758384986/]  

This Article is TAGGED in , , . Read more