Preview:
Actions action = new Actions(driver);

//Move over the menu options
WebElement menuOption = driver.findElement(By.xpath("locator"));
action.moveToElement(menuOption).perform();

//Displays the menu list with options, now we can click an option from the menu list
WebElement selectMenuOption = driver.findElement(By.xpath("locator2"));
action.click(selectMenuOption).perform();
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter