[Selenium]对弹出的Alert窗口进行操作

Alert alert = driver.switchTo().alert();
alert.accept();
原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/3772633.html