0

32

The following code i am using to hover and click

 Actions actions = new Actions(driver)
 WebElement Mainmenu = driver.findElement(By.xpath(".//*[@id='nav']/li[6]/a"))
 WebElement Submenu = driver.findElement(By.xpath(".//*[@id='nav']/li[6]/ul/li[1]/a"));
 WebElement Childsubmenu = driver.findElement(By.xpath(".//*[@id='nav']/li[6]/ul/li[1]/ul/li[1]/a"));
      actions.moveToElement(Mainmenu).moveToElement(Submenu).moveToElement(Childsubmenu).click().build().perform();

It works perfectly fine in Chrome but doesn't work in Firefox 22.

4

0 に答える 0