How do you perform mouse actions in Selenium WebDriver?
Using the Actions class:
Actions actions = new Actions(driver);
actions.moveToElement(element).click().perform();
Using the Actions class:
Actions actions = new Actions(driver);
actions.moveToElement(element).click().perform();