How to fix the slow sendkeys on IE 11 with Selenium Webdriver 3.0.0?

后端 未结 11 493
无人共我
无人共我 2020-12-10 17:19

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
11条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 17:27

    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

提交回复
热议问题