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

后端 未结 3 1826
误落风尘
误落风尘 2020-12-09 09:39

I\'m using the example code from the SeleniumHq site - but in debug mode the performance is awful.

In release mode the entire test takes about 6 seconds (including l

3条回答
  •  天命终不由人
    2020-12-09 10:08

    Using the C#, NUnit, C# webdriver client and IEDriverServer, I originally had the problem with slow input (e.g., sending keys to an input box would take about 5 seconds between keys, or clicking on a button same kind of delay).

    Then, after reading this thread, I switched to the 32-bit IEDriverServer, and that seemed to solve the problem.

    But today I was experimenting with the InternetExplorerOptions object in order to set some options on IE according to this documentation:

    https://code.google.com/p/selenium/wiki/InternetExplorerDriver

    Per the documentation, I created the registry value HKCU\Software\Microsoft\Internet Explorer\Main\TabProcGrowth with a value of 0 in order to use ForceCreateProcessApi = true and BrowserCommandLineArguments = "-private."

    After doing this, I noticed that the slow-input problem was back. I had made several changes to my code, but after rolling all of them back, the problem still persisted. When I removed the aforementioned registry key, however, the input was back to full speed (no delay).

提交回复
热议问题