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

    <small id='6zoT0'></small><noframes id='6zoT0'>

      <bdo id='6zoT0'></bdo><ul id='6zoT0'></ul>
    <tfoot id='6zoT0'></tfoot>

      <legend id='6zoT0'><style id='6zoT0'><dir id='6zoT0'><q id='6zoT0'></q></dir></style></legend>

      “IEDriverServer 不存在"在 Windows 7 中使用 C# 运行 Selenium 测试时出

      quot;IEDriverServer does not existquot; error during running Selenium test with C# in Windows 7(“IEDriverServer 不存在在 Windows 7 中使用 C# 运行 Selenium 测试时出错)
    1. <tfoot id='S64Rw'></tfoot>
        <tbody id='S64Rw'></tbody>

        <legend id='S64Rw'><style id='S64Rw'><dir id='S64Rw'><q id='S64Rw'></q></dir></style></legend>
        1. <small id='S64Rw'></small><noframes id='S64Rw'>

                <bdo id='S64Rw'></bdo><ul id='S64Rw'></ul>
                <i id='S64Rw'><tr id='S64Rw'><dt id='S64Rw'><q id='S64Rw'><span id='S64Rw'><b id='S64Rw'><form id='S64Rw'><ins id='S64Rw'></ins><ul id='S64Rw'></ul><sub id='S64Rw'></sub></form><legend id='S64Rw'></legend><bdo id='S64Rw'><pre id='S64Rw'><center id='S64Rw'></center></pre></bdo></b><th id='S64Rw'></th></span></q></dt></tr></i><div id='S64Rw'><tfoot id='S64Rw'></tfoot><dl id='S64Rw'><fieldset id='S64Rw'></fieldset></dl></div>
                本文介绍了“IEDriverServer 不存在"在 Windows 7 中使用 C# 运行 Selenium 测试时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用带有 C# 的 WebDriver 开发自动化框架.它在 Firefox 上运行良好,但在 IE 上却不行.

                我收到以下错误:

                <块引用>

                IEDriverServer.exe 不存在-文件 c:usersadministratordocumentsvisual studio 2010projectsTestProject1TestProject1inDebugIEDriverServer.exe 不存在.驱动程序可以在

                I'm working on Automation framework using WebDriver with C#. Its working fine with Firefox but not with IE.

                I am getting the following error:

                IEDriverServer.exe does not exist-The file c:usersadministratordocumentsvisual studio 2010projectsTestProject1TestProject1inDebugIEDriverServer.exe does not exist. The driver can be downloaded at http://code.google.com/p/selenium/downloads/list

                I am using IE 9 and Windows 7.

                IWebDriver driver = new InternetExplorerDriver();
                driver.Navigate().GoToUrl("http://www.google.co.uk");
                IWebElement queryBox = driver.FindElement(By.Name("q"));
                queryBox.SendKeys("The Automated Tester");
                queryBox.SendKeys(Keys.ArrowDown);
                queryBox.Submit();
                

                See also .

                解决方案

                Per Jim Evans (who works on IEDriverServer)

                The .NET bindings don't scan the %PATH% environment variable for the executable. That means for the .NET bindings only, the IEDriverServer.exe is expected to either be found in the same directory as the .NET bindings assembly, or you must specify the directory where it can be found in the constructor to the InternetExplorerDriver class.

                Failure to do one of these things (or to set the UseInternalServer property in the InternetExplorerOptions class) will cause the .NET IE driver implementation to throw an exception. This is strictly by design, as we want people to begin using the standalone IEDriverServer.exe, and the ability to use an "internal" or "legacy" version of the server will be removed in a future release.

                https://groups.google.com/forum/?fromgroups#!topic/webdriver/EvTyEPYchxE

                这篇关于“IEDriverServer 不存在"在 Windows 7 中使用 C# 运行 Selenium 测试时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                set equality in linq(在 linq 中设置相等)
                HashSet conversion to List(HashSet 转换为 List)
                How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)

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

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

                          <tbody id='ga6E1'></tbody>
                      1. <tfoot id='ga6E1'></tfoot>