最近,我更换了机器,不得不重新开始安装东西。我有 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
我的问题是:
是否可以在不真正切换到 32 位 IE 驱动程序的情况下解决打字速度慢的问题?
如果 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/