Skip to content

Instantly share code, notes, and snippets.

@azakordonets
Created August 27, 2014 18:10
Show Gist options
  • Select an option

  • Save azakordonets/e7e6e2284bb27c16d7d1 to your computer and use it in GitHub Desktop.

Select an option

Save azakordonets/e7e6e2284bb27c16d7d1 to your computer and use it in GitHub Desktop.
public void dragAndDrop2(WebElement element, int xOffset, int yOffset) throws Exception {
Actions builder = new Actions(driver;
Action dragAndDrop = builder.dragAndDropBy(element, xOffset, yOffset) .build();
dragAndDrop.perform();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment