I want to automate a scenario.
When the browser lands on the website, there is a warning pop-up that requires a response to the prompt: Do you want to proceed?
There are two options Leave and Continue.
I am trying to switch the control with the following functions but its not working.
Alert alert=driver.switchTo().alert();
driver.switchTo().alert();
alert.accept();
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…