lundi 15 juin 2020

Random Alert in Selenium Driver, how do I handle it?

I am attempting to test www.uhc.com website using Selenium with Java and Chrome browser. The website has a pop-up that appears randomly at any point while the script is running, it is asking to take a survey with simple yes or no buttons. If I try to guess when this will happen then Selenium is waiting for the alert and the test fails. How can I pass the tests and dismiss the pop-ups that appears randomly?

Aucun commentaire:

Enregistrer un commentaire