alert弹框 Alert alert = chromeDriver.switchTo().alert();alert.accept();alert.dismiss();alert.getText(); confirm弹框 Alert alert = ChromeDriver.switchTo().alert();alert.accept();alert.dismiss();alert.getText(); 来源:https://www.cnblogs.com/JacquelineQA/p/12593362.html 标签 alert confirm