Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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