title: How can I perform mouse click on Mouse Hover of Dynamic Menu items in Selenium 2.0
body: <p>I am working on Walmart automation using Selenium WebDriver. I have written a function to hover over the Departments Menu "Home , Furniture &amp; Patio" so that it gets highlighted and I can click on "Appliances" link. Here is the function that I have written but it does not seem to hover over the element. </p>
  
  <pre><code>    public void NavigateDepartments(){
          WebElement ApplianceLink = driver.findElement(By.xpath("//*[div='Home, Furniture &amp; Patio']"));
      Actions myMouse = new Actions(driver);
          myMouse.moveToElement(ApplianceLink).build().perform();
      ApplianceLink.click();
  
  }
  </code></pre>
  
  <p>I also tried giving absolute path for 
  Xpath("/html/body/div/div/div[3]/div/div/div/ul/li[3]/div/div") to find the element and it did not work either. Am I missing anything ?</p>