How to click Allow on Show Notifications popup using Selenium Webdriver

As this, not an alert box, so you can’t handle it using Alert, this is a Chrome browser notification, To Switch off this browser notification you need to create chrome preference map with chrome option as below :-

Please share your review and share the post.

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.

How to open chrome browser with web security disable in selenium

Let’s see how we can open chrome browser with web security disable in selenium. Below is the running code.

Please share your feedback.