【问题标题】:Selenium webdriver suddenly stopped working in IESelenium webdriver 在 IE 中突然停止工作
【发布时间】:2015-03-27 14:56:25
【问题描述】:

我的 selenium webdriver 测试在 IE 11 和 Firefox 中运行良好。但突然它停止在 IE 中工作。在 Firefox 和 Chrome 中运行良好。 我使用的是 IE11,并配置了所有所需的功能,也没有修改任何所需的功能

InternetExplorerDriverService service = InternetExplorerDriverService.createDefaultService();
capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
capabilities.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, "about:blank");
capabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);
capabilities.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);
capabilities.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, false);
webDriver = new InternetExplorerDriver(service, capabilities);

你能推荐一下吗

【问题讨论】:

    标签: selenium webdriver


    【解决方案1】:

    是的,正如我所说的here

    如果您已进行 Windows 更新 KB3025390 IE 将无法按预期工作。

    此外,卸载更新 KB3025390 应该可以使 WebDriver 在 Internet Explorer 11 中正常工作。请参阅此答案

    【讨论】:

    • 谢谢,至少现在我知道了根本原因。我检查了我的安全更新,我有 KB3025390,但卸载不是我的选择,因为这是我的办公机器
    【解决方案2】:

    我遇到了类似的问题。将驱动程序和 IEServer 升级到最新版本修复了它。这可能不是你的问题,但它对 m 有用。

    【讨论】:

    • 我有最新版本的 IEServerDriver 和 Selenium WebDriver,但仍然是同样的问题。此外,卸载 Windows 更新 KB3025390 不是一个选项,因为这是我的办公机器,无法卸载安全更新。我找到了这个code.google.com/p/selenium/issues/detail?id=8302
    猜你喜欢
    • 1970-01-01
    • 2023-01-27
    • 2016-02-16
    • 2017-08-22
    • 2021-02-01
    • 2016-12-29
    • 2018-05-09
    • 2015-12-07
    相关资源
    最近更新 更多