lundi 22 juin 2020

selenium webdriver can't find the alert box

I am using selenium webdriver , I have alert box displaying when clicking save and disappear after 5 minutes ,

Alert alert= driver.switchTo().alert(); 
alert.accept(); 

and then run the code, I am using the Selenium design pattern framework
this is the website image and code with error enter image description here

enter image description here enter image description here

Update : I tried to get close button by class and click it and works for me but till now can

Aucun commentaire:

Enregistrer un commentaire