I have a small piece of code:
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
WebElement menuOption = driver.findElement(By.className("icon-user"));
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); 
It does not go beyond the last line   i.e menuOption.click();
I get Exception:
Exception in thread "main" org.openqa.selenium.ElementNotVisibleException: element not visible
website staging.revampon.net

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by
0 votes
Number 1.

make sure that "icon-user" is unique. i mean there is only one element in whole page with class name as "icon-user". If so you will have to wait for element to be visible. Also try using explicit wait / fluent wait. If  your element is not unique, you need to try another approach to identify element.