问题描述
当我尝试在最新的IE中执行测试时,我发现输入非常慢:每个字符在输入字段中出现需要5秒钟。
启用所有安全区域并使用以下代码初始化驱动程序:
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:
System.setProperty("webdriver.ie.driver", "./src/test/resources/IEDriverServer.exe");
return new InternetExplorerDriver();
此问题仅出现在IE10上;当我运行Firefox时,一切都很好。
This problem appears only on IE10 ; when I'm running Firefox everything is just fine.
我的操作系统是Windows 8,以防万一。
My OS is Windows 8, just in case.
我错过了什么吗?
UPD 现在我可以看到有时IE工作得更快,但是当它发生时,这段代码不起作用:
UPD Now i can see that sometimes IE works faster, but when it happens this code doesn't work:
action.contextClick(logoPic).clickAndHold().sendKeys("keys_to_invoke_some_window").perform();
推荐答案
通过替换IEDriverServer.exe(从x64版本切换)修复到x32版本)
Fixed by replacing IEDriverServer.exe (switched from x64 version to x32 version)
这篇关于WebDriver和IE10的输入速度非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!