582 views 29 secs 0 comments

How To Find Hidden Elements In Selenium WebDriver With Java

In General
January 03, 2023


Have you ever struggled with handling hidden elements while automating a web or mobile application? I was recently automating an eCommerce application. I struggled with handling hidden elements on the web page.

Usually, we get an ElementNotInteractableException or ElementNotVisibleException when locating any web elements on the web page. This is due to the elements present in DOM but not visible on the web page.

In simple terms, I can say that the book is present on the shelf but not visible.

In the above image, the book is present on the shelf, but it is hidden under other books. In the same way, the web element will be present on the web page, but it is hidden for some reason.

The reason is that sometimes developers need to hide the elements on the web page as per the requirement. While designing the HTML page, UI developers often hide a few things from the UI due to particular conditions or requirements (mentioned later in the blog on how to find hidden elements in



Continue reading on source link

Leave a Reply
You must be logged in to post a comment.