Selenium InternetExplorerDriver Webdriver がデバッグモードで非常に遅いのはなぜですか (Visual Studio 2010 および IE9) 質問する

Selenium InternetExplorerDriver Webdriver がデバッグモードで非常に遅いのはなぜですか (Visual Studio 2010 および IE9) 質問する

私は SeleniumHq サイトのサンプル コードを使用していますが、デバッグ モードではパフォーマンスがひどいです。

リリース モードでは、テスト全体に約 6 秒かかります (IE の起動と終了を含む)。デバッグ モードでは 65 秒かかります。

サンプルコードは次のとおりです:

    [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 を使用すると、同じ問題は発生しません。

注: 私は .Net 4 と webDriver.dll の最新バージョン (2.16) を使用しています (64 ビット Windows 7 ボックスで実行)

ベストアンサー1

私の場合、解決策は32ビット版に切り替えることでしたInternetExplorerDriver.exehttps://code.google.com/p/selenium/downloads/list

最近はという名前になっているようですIEDriverServerが、 に名前を変更するだけで機能しますInternetExplorerDriver.exe

おすすめ記事