How to fix the slow sendkeys on IE 11 with Seleniu

2019-01-26 15:27发布

Firefox and chrome is working fine but with IE 11, the sendkeys are extremely slow. How do you fix this issue ?

My Environment:

  • Running IE 11.103
  • Operating System Windows 10
  • I'm using eclipse(Version: Neon Release (4.6.0)) with java 1.8
  • selenium Webdriver 3.0.0

11条回答
Viruses.
2楼-- · 2019-01-26 16:22

I changed to IEDriver 32 bit (from 64 bits) solved this problem for me. IE 11, Windows 7, Selenium 3.4.

查看更多
劫难
3楼-- · 2019-01-26 16:23

A note for ruby and webdiriver version 3+

The documentation has examples with native_events IE parameter, even it is written in console at the start point.

Actually the right parameter name is nativeEvent.

Set nativeEvent = false,
and webdriver will use fast JS instead off a slow native click simulation.

查看更多
ら.Afraid
4楼-- · 2019-01-26 16:26

I fixed it by downloading and using a 32bit one. The thread that helped me resolve

https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/5116

查看更多
【Aperson】
5楼-- · 2019-01-26 16:30

IE 11 was running slow on a Windows 8.1 VM, I was running IEDriverServer.exe 3.5.1.0 (x32), I fixed by changing to IEDriverServer.exe 3.5.1.0 (x64). Note: 3.4.0.0 does not fix this issue. nativeEvents: false did not change anything. The driver is in my PATH, not sure what happens if it's not.

查看更多
\"骚年 ilove
6楼-- · 2019-01-26 16:30

I have been working on IE11 with selenium library: selenium-server-standalone-3.141.59.jar and have following finding:

On Window 10 64 bit version IE 11 version 11.431.16299, updated version 11.0.65(KB4103765) It works fine with IEDriverServer.exe (64 bit version) no need extra setting on capability. Key in period is acceptable(for 6 characters within 1 sec)

On Window 10 64 bit version IE 11 version 11.15.16299.0 updated version 11.0.47 KB4040685 It works very slow with IEDriverServer.exe (64 bit version) To enter a 6 characters string, every character needs 3-4 secs to completed. To solve the problem, the following coding I tested works fine for me.

InternetExplorerOptions options = new InternetExplorerOptions();
options.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);

On Window 7 Professional 32 bit version IE 11 version 11.0.9600.18499, updated version 11.0.36(KB3191495) It works fine with IEDriverServer.exe (32 bit version). Keyin period is acceptable.(6 characters within a sec) No extra setting is needed

查看更多
登录 后发表回答