Skip to content

Instantly share code, notes, and snippets.

@ultimate-qa2
Created February 26, 2021 15:47
Show Gist options
  • Save ultimate-qa2/aa048a579321d8e18472d49c708134d5 to your computer and use it in GitHub Desktop.
Save ultimate-qa2/aa048a579321d8e18472d49c708134d5 to your computer and use it in GitHub Desktop.
Advanced mouse and keyboard actions examples in Selenium WebDriver Java
// hover
action.moveToElement(element).build().perform();
// drag and drop
action.dragAndDrop(element, element2).build().perform();
// click-pause-release
action.clickAndHold(element).pause(100).release().build().perform);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment