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  How to pass WebDriver instance to other class in Selenium

Rajesh K