Selenium sendkeys typing slow on IE 11

Answered

Question asked in Sapient

While executing scenarios with browser IE(using IE11 version) , I am experiencing slowness while entering or sending data to text field though I did not applied any Implicit or explicit wait on the driver however it is working fine with chrome.

Professor Asked on August 19, 2014 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)
    Best answer

    Since IE11 came out not too long ago, and there isn’t any Microsoft Engineers on the Selenium project. The people working on the IEDriverServer are people who are working on it part time trying to reverse engineer how IE11 works. Where Firefox, Opera, and Chrome have engineers dedicated to the Selenium project, IE and Safari do not, which make supporting those browsers lagging behind the other popular browsers.

    SendKeys being slow has to do with the IEDriverServer in 64 bit mode. If you’re on 64bit IE, You can choose to be more accurate/reliable using IEDriverServer64, or you can go faster by using IEDriverServer32, but it’ll be less reliable because you’re mismatching architecture. You can read about that problem described here, https://code.google.com/p/selenium/i…detail?id=3072

    This issue is because you must be using 64 bit IE driver service. This causes 64 bit IE to be launched while test run. Now 64 bit has this problem of slow send keys because of the issue described here as mentioned by Lakshay earlier.

    Now how to override to 32 bitness? Here is what you have to do
    1. Download 32 bit driver service from http://selenium-release.storage.googleapis.com/index.html
    2. instantiate your InterExplorerWeDriver class using InternetExplorerDriverService class with path to 32 bit driver service.

    This way it will always short circuit to 32 bit service

    Just in case you need to know the exact steps
    InternetExplorerDriver ieDiver =
    new InternetExplorerDriver(“Path to the 32 bit Explorer driver service”);

    Make sure that you build your test for a 32 bit system

    Regards,
    Lakshay Sharma

    Professor Answered on August 19, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.