WebDriver判断Alert是否存在
可以用如下代码判断Alert是否存在,在IE8上测试通过
while (isAlertPresent()){ driver.switchTo().alert().accept(); pause (3000); }