How to handle hidden webelements in Selenium Webdriver

Today we will see how to handle hidden webElements in Selenium. Sometimes you will get into this scenario where your elements on which you want click contains Pseudo Elements (::after or ::before).

One of the way to get the correct element by finding it’s X and Y co-ordinates. Below is the example for that.

 

It will find the present locator and click on the element. Please share your review and give your comment.

Leave a Reply

Your email address will not be published. Required fields are marked *