1

I have a scenario where I am testing a Windows based application using WinAppDriver and Selenium TestNG framework. While testing the application, it may throw random alerts/pop-ups/error messages at any point of time. I would like to handle that in my code and close that alert/pop-up/error message and carry on with my automation testing.

Any suggestions?

  • This may help you: https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/events/WebDriverEventListener.html and possibly unhandledpromptbehaviour. – pcalkins Dec 14 '20 at 20:23

0 Answers0