“IEDriverServer does not exist” error during running Selenium test with C# in Windows 7

前端 未结 7 1475
青春惊慌失措
青春惊慌失措 2020-12-08 15:01

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:

7条回答
  •  北海茫月
    2020-12-08 15:42

    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

提交回复
热议问题