Why is Selenium InternetExplorerDriver very slow in debug mode (visual studio 2010 and IE9)

0 votes

I'm using the example code from the SeleniumHq site - but in debug mode, the performance is very slow.

In release mode, the entire test takes about 6 seconds (including launching and closing IE) In Debug mode it takes 65 seconds.

The sample code is below:

    public void testBrowser()
        // Do something here
        IWebDriver driver = new InternetExplorerDriver();
        //Notice navigation is slightly different than the Java version
        //This is because 'get' is a keyword in C#
        IWebElement query = driver.FindElement(By.Name("q"));
        System.Console.WriteLine("Page title is: " + driver.Title);
        // TODO add wait


I've tried it in IE8 and have the same performance. Firefox is fine - but my clients use IE so I'm stuck with testing against it. Also I don't have the same issues if I use Selenium RC.

I'm using .Net 4 and the latest version (2.16) of the webDriver.dll (running on a 64bit windows 7 box)

Aug 8, 2018 in Selenium by GandalfDwhite
• 1,320 points

1 answer to this question.

0 votes

For me, the fix was to switch to the 32 bit version of InternetExplorerDriver.exe from https://code.google.com/p/selenium/downloads/list

Seemingly named IEDriverServer nowadays, but works if you just rename it to InternetExplorerDriver.exe.

answered Aug 8, 2018 by Meci Matt
• 9,430 points

Related Questions In Selenium

0 votes
1 answer

What is TestNG and why it is used in selenium?

Hello @User, Talking about TestNG, it is an ...READ MORE

answered Dec 24, 2018 in Selenium by Shuvodip
0 votes
1 answer

What is Robot Class in selenium webdriver and why it is used?

Hello Akanksha, Robot Class is used for those ...READ MORE

answered May 8 in Selenium by Pratibha
• 3,680 points
0 votes
1 answer
0 votes
1 answer

Which webdriver implimentation is fastest in Selenium Webdriver and why?

Hi Isaac, HTMLUnit Driver implementation is fastest, as ...READ MORE

answered May 28 in Selenium by Abha
• 27,180 points
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,150 points
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,150 points
0 votes
1 answer

Selenium WebDriver typing speed is slow in input text field

It worked for me in the 64bit ...READ MORE

answered Jun 1, 2018 in Selenium by Meci Matt
• 9,430 points