java WebDriver 和 IE10 非常慢的输入

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14461827/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 16:21:28  来源:igfitidea点击:

WebDriver and IE10 very slow input

javainternet-explorerwebdriverselenium-webdriver

提问by Mikhail Panin

When I'm trying to execute tests in the latest IE, I see that input is very slow : it takes like 5 seconds for every character to appear in the input field. All security zones are enabled and the driver initialized with the following code:

当我尝试在最新的 IE 中执行测试时,我发现输入非常慢:每个字符出现在输入字段中大约需要 5 秒。启用所有安全区域并使用以下代码初始化驱动程序:

System.setProperty("webdriver.ie.driver", "./src/test/resources/IEDriverServer.exe");
return new InternetExplorerDriver();

This problem appears only on IE10 ; when I'm running Firefox everything is just fine.

此问题仅在 IE10 上出现;当我运行 Firefox 时,一切都很好。

My OS is Windows 8, just in case.

我的操作系统是 Windows 8,以防万一。

Did I miss something?

我错过了什么?

UPDNow i can see that sometimes IE works faster, but when it happens this code doesn't work:

UPD现在我可以看到有时 IE 工作得更快,但是当它发生时,此代码不起作用:

action.contextClick(logoPic).clickAndHold().sendKeys("keys_to_invoke_some_window").perform();

回答by Mikhail Panin

Fixed by replacing IEDriverServer.exe (switched from x64 version to x32 version)

通过替换 IEDriverServer.exe 修复(从 x64 版本切换到 x32 版本)

回答by Anantanag

Replacing the IEDriverServer.exe(switched from x64 version to x32 version) solved the issue of slowness.

更换IEDriverServer.exe(从x64版本切换到x32版本)解决了速度慢的问题。