Selenium 2.0 Remote web driver fails to start IEDriver with C# -
desiredcapabilities capabilities = desiredcapabilities.internetexplorer(); system.environment.setenvironmentvariable("webdriver.ie.driver", @"c:\\iedriverserver.exe"); instance = new remotewebdriver(new uri("http://localhost:4444/wd/hub"), capabilities);
i have scheme variable set, , iedriverserver
in scheme path. cannot run iedriver command line (which makes me thinking there wrong path configuration, or security restriction)
note hub , node 1 , same machine.
when execute test get:
"system.invalidoperationexception: path driver executable must set webdriver.ie.driver scheme property; m....."![enter image description here][1]
i'm running 1 1 machine both acting hub , node create proof of concept it'll work me.
there number of things i'd question approach you're trying accomplish. first, if you're running c# code on same machine remote java server (node/hub), why bother? can utilize internetexplorerdriver
class , eliminate java server altogether.
second, setting environment variable not same setting java scheme property. can set scheme property using -d
command line flag on command line launch java .jar.
finally, if you're running java server on different machine c# code, , correctly using remotewebdriver
, bear in mind need iedriverserver.exe
on machine running java server, , not 1 running c# code. furthermore, need hub/node aware of path executable on machine, not executable c# code running.
c# selenium
No comments:
Post a Comment