I am using Java 7, Firefox, with Selenium 2.30 0 and am getting the following error:
ElementNotVisibleException: Element is not currently visible and so may not be interacted with
Now this is what I am doing:
driver.findElement(By.xpath("//*[@id='Menu1']/li[3]/a")).click();
driver.findElement(By.xpath("//*[@id='Menu1']/li[3]/ul/li[5]/a")).click();
I am running through this in debug mode with IntellIJ so I don't think it is a timing problem as I am going pretty slow. The first find element works great and I can see the menu drop down with the 5 items to select / click
. Now when I get to the second step I get an error. Is there something I need to do in order to make a WebElement visible to the driver?