• <bdo id='Ksesu'></bdo><ul id='Ksesu'></ul>
  • <i id='Ksesu'><tr id='Ksesu'><dt id='Ksesu'><q id='Ksesu'><span id='Ksesu'><b id='Ksesu'><form id='Ksesu'><ins id='Ksesu'></ins><ul id='Ksesu'></ul><sub id='Ksesu'></sub></form><legend id='Ksesu'></legend><bdo id='Ksesu'><pre id='Ksesu'><center id='Ksesu'></center></pre></bdo></b><th id='Ksesu'></th></span></q></dt></tr></i><div id='Ksesu'><tfoot id='Ksesu'></tfoot><dl id='Ksesu'><fieldset id='Ksesu'></fieldset></dl></div>

    <small id='Ksesu'></small><noframes id='Ksesu'>

  • <legend id='Ksesu'><style id='Ksesu'><dir id='Ksesu'><q id='Ksesu'></q></dir></style></legend>

      <tfoot id='Ksesu'></tfoot>

        为什么 Selenium InternetExplorerDriver Webdriver 在调试模式下非常慢(Visu

        时间:2023-09-13
      1. <tfoot id='qjPB0'></tfoot>

        <small id='qjPB0'></small><noframes id='qjPB0'>

          <i id='qjPB0'><tr id='qjPB0'><dt id='qjPB0'><q id='qjPB0'><span id='qjPB0'><b id='qjPB0'><form id='qjPB0'><ins id='qjPB0'></ins><ul id='qjPB0'></ul><sub id='qjPB0'></sub></form><legend id='qjPB0'></legend><bdo id='qjPB0'><pre id='qjPB0'><center id='qjPB0'></center></pre></bdo></b><th id='qjPB0'></th></span></q></dt></tr></i><div id='qjPB0'><tfoot id='qjPB0'></tfoot><dl id='qjPB0'><fieldset id='qjPB0'></fieldset></dl></div>
          <legend id='qjPB0'><style id='qjPB0'><dir id='qjPB0'><q id='qjPB0'></q></dir></style></legend>

            • <bdo id='qjPB0'></bdo><ul id='qjPB0'></ul>
                    <tbody id='qjPB0'></tbody>
                  本文介绍了为什么 Selenium InternetExplorerDriver Webdriver 在调试模式下非常慢(Visual Studio 2010 和 IE9)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 SeleniumHq 站点的示例代码 - 但在调试模式下,性能很糟糕.

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

                  在发布模式下,整个测试大约需要 6 秒(包括启动和关闭 IE)在 Debug 模式下需要 65 秒?

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

                  示例代码只是:

                      [Test]
                      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#
                          driver.Navigate().GoToUrl("http://www.google.com");
                          IWebElement query = driver.FindElement(By.Name("q"));
                          query.SendKeys("Cheese");
                          System.Console.WriteLine("Page title is: " + driver.Title);
                          // TODO add wait
                          driver.Quit();
                  
                      }
                  

                  我已经在 ie8 中尝试过,并且具有相同的性能.Firefox 很好——但我的客户使用 IE,所以我坚持测试它.另外 - 如果我使用 Selenium RC,我不会遇到同样的问题.

                  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.

                  注意 - 我正在使用 .Net 4 和最新版本 (2.16) 的 webDriver.dll(在 64 位 Windows 7 机器上运行)

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

                  推荐答案

                  对我来说,解决方法是从 InternetExplorerDriver.exe/code.google.com/p/selenium/downloads/list" rel="nofollow noreferrer">https://code.google.com/p/selenium/downloads/list

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

                  现在看似命名为 IEDriverServer,但只要将其重命名为 InternetExplorerDriver.exe 即可.

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

                  这篇关于为什么 Selenium InternetExplorerDriver Webdriver 在调试模式下非常慢(Visual Studio 2010 和 IE9)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 Selenium 2 查找嵌套的 iFrame 下一篇:Selenium c#接受确认框

                  相关文章

                • <i id='e8rov'><tr id='e8rov'><dt id='e8rov'><q id='e8rov'><span id='e8rov'><b id='e8rov'><form id='e8rov'><ins id='e8rov'></ins><ul id='e8rov'></ul><sub id='e8rov'></sub></form><legend id='e8rov'></legend><bdo id='e8rov'><pre id='e8rov'><center id='e8rov'></center></pre></bdo></b><th id='e8rov'></th></span></q></dt></tr></i><div id='e8rov'><tfoot id='e8rov'></tfoot><dl id='e8rov'><fieldset id='e8rov'></fieldset></dl></div>
                  <legend id='e8rov'><style id='e8rov'><dir id='e8rov'><q id='e8rov'></q></dir></style></legend>
                  • <bdo id='e8rov'></bdo><ul id='e8rov'></ul>

                  <small id='e8rov'></small><noframes id='e8rov'>

                    1. <tfoot id='e8rov'></tfoot>