O'Reilly logo

Mastering Selenium WebDriver by Mark Collin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ElementNotVisibleException

This is a very useful exception that you will probably come across on a regular basis. This exception tells you that the WebElement that you are trying to interact with is not visible to the user. It's amazing how many people don't realize how important this exception is. Remember that if the element is not visible to the user, they are not going to be able to interact with it.

Please don't ignore or try to work around this exception. You will probably come across lots of so called solutions to this problem that are really nasty hacks. They usually involve some custom JavaScript to perform the desired action and totally ignore the fact that you really have a legitimate problem.

The Selenium development team has spent a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required