Selenium Java - Actions Class
What will happen if you run the following code snippet?
WebElement menu = driver.findElement(By.id("menu"));
Actions actions = new Actions(driver);
actions.moveToElement(menu).perform();
WebElement submenu = driver.findElement(By.id("submenu"));
submenu.click();