无法接受 Microsoft Edge 中的警报使用 Protractor
Cannot accept alert in Microsoft Edge use Protractor
我用API
browser.wait(protractor.ExpectedConditions.alertIsPresent(), 10000).then(() => {
browser.switchTo().alert().accept();
});
显示警报时离开页面。
它在 Chrome、Firefox、IE11 上运行良好,但在 Microsoft Edge 上无法运行。
我使用 Microsoft WebDriver Release 10586(使用 windows buid 10586 更正)
我该如何解决这个问题?
查看 Insiders 版本 Microsoft Edge Webdriver APIs. It appears they have implemented the alert APIs per W3C WebDriver specification support but is available on "Insiders" version (see Download page 的支持列表。
我用API
browser.wait(protractor.ExpectedConditions.alertIsPresent(), 10000).then(() => {
browser.switchTo().alert().accept();
});
显示警报时离开页面。 它在 Chrome、Firefox、IE11 上运行良好,但在 Microsoft Edge 上无法运行。
我使用 Microsoft WebDriver Release 10586(使用 windows buid 10586 更正)
我该如何解决这个问题?
查看 Insiders 版本 Microsoft Edge Webdriver APIs. It appears they have implemented the alert APIs per W3C WebDriver specification support but is available on "Insiders" version (see Download page 的支持列表。