Java+Selenium / org.openqa.selenium.NoAlertPresentException
newWebDriverWait(driver,6).until(ExpectedConditions.alertIsPresent());driver.switchTo().alert().accept();在进行alert操作前,先等待警报显示,即等弹框出来。参考:https://stackoverflow.com/questions/17749064/selenium-noalertpres