Actions class is used to handle the keyboard events, mouse hover events (such a Drag and Drop , Press Enter, Tab, Shift key etc.). We can also double click on any element, Right click on any element using Action class.
Example:
Actions act=new Actions(driver);
// mouse hover on an element and click on it.
act.moveToElement(element).click().build().perform();
Example:
Actions act=new Actions(driver);
// mouse hover on an element and click on it.
act.moveToElement(element).click().build().perform();
No comments:
Post a Comment