English 中文(简体)
为什么要出售因特网外包器 网上浏览器的精度非常缓慢(2010年视频演播室和国际环境9)
原标题:Why is Selenium InternetExplorerDriver Webdriver very slow in debug mode (visual studio 2010 and IE9)

采用SeleniumHq矿址的典型代码,但是,在节奏中,业绩是巨大的。

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();

    }

我在座谈了8点,表现相同。 出生地为罚款,但我的客户使用IE,因此我 st不去接受测试。 而且,如果我使用Selenium RC,我没有同样的问题。

NB - I m, using .Net 4 and the recent edition (2.16) of the web/63/7r.dll (running on a 64bitdows 7 Box)

问题回答

检查优于32比特,不检查贵的建筑财产。 如果是,而且你正在使用64轨电线驱动器,则该电线将像天线星。

借助C#、NUnit、C#网络用户和IEDriverServer,我最初的问题是投入缓慢(例如,向投入箱发送钥匙在钥匙之间需要大约5秒钟,或点击同一吨的延迟)。

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

但是,今天,我正在试验因特网ExplorerOptions的标语,以便根据这一文件在互联网上设定一些选择:

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

在文件编写过程中,我设立了登记册价值香港元数据库。 微软 因特网探索者MainTabProcGrowth,其价值为0,以便使用部队CreateProcessApi = 真实和BrowserCommandLineArguments = “-私人”

在这样做之后,我注意到进展缓慢的问题已经回头。 我对我的法典做了若干改动,但在将所有改动重新编号后,问题依然存在。 然而,当我删除上述登记处钥匙时,该投入被完全撤回(无拖延)。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签