How can I change where my webdriver exe file is called from in Visual Studio 2017 C# -
i'm using selenium webdriver 3.4.0 in visual studio 2017.
my webdrivers taken nuget packages e.g. selenium.firefox.webdriver
jbaranda.
this package downloads relevant geckodriver.exe , copies bin folder during runtime.
to call driver need code:
driver = new firefoxdriver();
how can call driver can run driver arguments or switches e.g. "..\geckodriver.exe -log trace"?
i have tried
environment.setenvironmentvariable("webdriver.gecko.driver", "c:\\selenium\\geckodriver.exe");
but file bin folder still used.
thanks
Comments
Post a Comment