title: How to click on a Dropdown menu through Selenium
body: <pre><code>Actions a= new Actions(driver);
  WebElement mainmenu=driver.findElement(By.xpath(".//*[@id='yui-gen2']/a"));
  a.moveToElement(mainmenu).build().perform();
  WebElement Sub = driver.findElement(By.xpath(".//*[@id='helpAbout']"));    
  a.moveToElement(Sub).build().perform();
  Sub.click();
  </code></pre>
  
  <p>Code  couldn't able to click on submenu it just stops at 3rd line.</p>
  
  <p><a href="https://i.stack.imgur.com/G8MKR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G8MKR.jpg" alt="screenshot"></a></p>