0

我在尝试在 IE11 上远程执行我的 selenium 脚本时遇到了缓慢但是,这在本地执行中相对工作得很好

Selenium 版本:3.141 IE 驱动程序:3.14.0

我正在从事医疗保健项目,支持的浏览器是 IE。请建议如何解决这个问题?

能力:

    private static WebDriver getInternetExplorerDriver(String driverpath) {
        if (driverpath.endsWith(".exe")) {
            System.setProperty("webdriver.ie.driver", driverpath);
        } else {
            System.setProperty("webdriver.ie.driver", driverpath + "IEDriverServer.exe");
        }
        capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
        capabilities.setCapability("ignoreZoomSetting", true);
        capabilities.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, "");
        capabilities.setCapability("requireWindowFocus", true);
        capabilities.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);
        capabilities.setCapability("unexpectedAlertBehaviour", "accept");
        capabilities.setCapability("ignoreProtectedModeSettings", true);
        capabilities.setCapability("disable-popup-blocking", true);
        capabilities.setCapability("enablePersistentHover", true);

        return new InternetExplorerDriver(capabilities);
    }
4

0 回答 0