Do you know how to mouse hover an element in Selenium?

Submitted by: Muhammad
Code to mouse hover over an element in Selenium:

Actions action = new Actions(driver);
WebElement element=driver.findElement(By.id("elementId"));
action.moveToElement(element).perform();
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers