How to handle UnhandledAlertException in selenium

How to handle UnhandledAlertException in selenium webdriver explains issues facing with new geckodriver versions to open Firefox Browser and issues with Alerts.In this  UnhandledAlertException in selenium lesson,you’ll get clear idea to resolve the issues in selenium test scripts.

Trending Posts:



Please watch below video for clear explanation with example.

You’can use below code to handle Alert Exception instead of AutoIT script.

Alert alert = switch().to.alert();
The above script can be useful to handle proxy Authentication in Firefox Browser and
it’ll not work in Google Chrome.
ALSO READ  Count number of links in a webpage using Selenium

Rajesh K

Leave a Reply

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