In real time we may observe lot of issues with IE browser using Selenium WebDriver or Selenium Grid.


Lets try to resolve...


Slowness Issue In Execution:

Mostly we observe internet explorer execution will be very slow(each and every character will enter for every 3 to 4 seconds) compare to FF,Chrome browser execution using Selenium.
To resolve this issue, these are alternative solutions

Solution 1:

Download latest 32 bit IEDrvierServer.exe file from click here
And set the path of the IEDriverServer in selenium code.
System.getProperty("webdriver.ie.driver","Path of the IEDriverServer.exe file");


Solution 2:

If you observe same slowness issue after adding 32 bit IEDriverServer.exe file,please set the capability "requiredWindowsFocus" as true.
Code :
System.setProperty("webdriver.ie.driver", "C:/durga/framework/drivers/IEDriverServer.exe");

DesiredCapabilities capability = DesiredCapabilities.internetExplorer();

capability.setCapability(InternetExplorerDriver.ENABLE_ELEMENT_CACHE_CLEANUP, true);

capability.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);

capability.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);

WebDriver driver = new InternetExplorerDriver(capability);

Try to execute the scripts by placing above code and see the execution performance.Hope slowness issue will resolve :)