java - 在输入速度非常慢时使用 64 位 Windows IE WebDriver

标签 java internet-explorer selenium selenium-webdriver

最近,我更换了机器,不得不重新开始安装东西。我有 64 位 Windows 机器,我没有使用 64 位 IE 驱动程序,而是使用 32 位 IE 驱动程序。 使用 32 位 IE 驱动程序的原因显然是 64 位 IE 驱动程序的慢打字问题,切换似乎是唯一的选择,可以在下面的线程中找到。

Why is Selenium InternetExplorerDriver Webdriver very slow in debug mode (visual studio 2010 and IE9) , 和 WebDriver and IE10 very slow input

我的问题是:

  1. 是否可以在不真正切换到 32 位 IE 驱动程序的情况下解决打字速度慢的问题?

  2. 如果 64 位 IE 驱动程序会大大降低您的测试速度,那么它还有什么必要呢?

关于Selenium官方download页面,建议使用 32 位,我们实际上需要 64 位吗?

最佳答案

正如 link 中指出的那样由上面的@Saifur 分享,似乎有使用 64 位而不是切换到 32 位的解决方法(虽然我还没有测试过它,而且可能永远不会)。

First, you can disable native events by setting the "nativeEvents" capability to false using whatever mechanism your language binding provides for this.

和,

A more accurate workaround from an input simulation perspective would be to enable the "requireWindowFocus" capability, though this also has a windows hook dependency, which may manifest in other ways.

关于java - 在输入速度非常慢时使用 64 位 Windows IE WebDriver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31269114/

相关文章:

javascript - 创建 React 应用程序未将 abab 模块编译为 ES5 兼容代码,导致 IE11 失败

java - 复制数组来生成单词

java - DataLayer的业务逻辑、应用层放在哪里?

javascript - 在服务器上发布后,CSS 或 Javascript 文件不起作用

apache - 分派(dispatch)传入的RPC调用时发生异常:encodeRequest不能为空

selenium - 使用 HtmlUnit 的 FileUpload 不会触发 fileUploadListener-Event(Primefaces 自动上传)

c# - 使用 C# 在多个浏览器中运行 Selenium 测试

java - Spring Boot Microsoft AD 身份验证

Java Billboard 数组列表

Python Selenium 尝试导出文件