Selenium 2.0 Remote web driver fails to start IEDriver with C# -
abilities of desirable abilities = desired capabilities Internet Explorer (); System.Environment.SetEnvironmentVariable ("webdriver.ie.driver", @ "C: \\ IEDriverServer.exe"); Example = New Remote Web Driver (new urie ("http: // localhost: 4444 / wd / hub"), capabilities);
I also have a system variable set, and IEDriverServer
is in the system path. I can not run IEDriver from the command line (which I think there is something wrong with path configuration, or some security restriction)
Note that hubs and nodes are another machine only
When I execute the test, I get:
"system.InvalidOperationException: The path of the driver executable should be determined by the webdriver.ie.driver system property; ... "[Enter image details here] [1]
I'm running this one machine Acting to act as a hub and a node, both of which will work for me. ">
There are many things I ask about your attitude that you are trying to fulfill. First of all, if you are running a remote Java server (node / hub) on your same code on your C # code, then why bother? You can simply use the InternetExplorerDriver
class and complete the Java server completely.
Second, setting an environment variable is similar to setting the No Java property using a -D
command line flag on the command line You can set system properties, with which you start Java .jar.
Finally, if you are actually running Java Server on a separate machine from the C # code, and using the correct RemoteWebDriver
, keep in mind that you have Java Server On the machine that runs on IEDriverServer.exe
is required, and not what your C # code is running, you should be aware of the executable path on the hub / node machine, Is not executable where your C # code is running.
Comments
Post a Comment