【问题标题】:Cannot accept alert in Microsoft Edge use Protractor在 Microsoft Edge 使用量角器时无法接受警报
【发布时间】:2017-06-30 12:31:25
【问题描述】:

我使用 API

browser.wait(protractor.ExpectedConditions.alertIsPresent(), 10000).then(() => { browser.switchTo().alert().accept(); });

显示警报时离开页面。 它在 Chrome、Firefox、IE11 上运行良好,但在 Microsoft Edge 上无法运行。

我使用 Microsoft WebDriver Release 10586(与 windows buid 10586 正确)

我该如何解决这个问题?

【问题讨论】:

    标签: webdriver protractor microsoft-edge


    【解决方案1】:

    查看支持的Microsoft Edge Webdriver APIs 列表。看来他们已经根据W3C WebDriver specification support 实现了警报 API,但在“Insiders”版本上可用(请参阅 Download page 了解 Insiders 版本)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-30
      • 1970-01-01
      相关资源
      最近更新 更多