Answer the question
In order to leave comments, you need to log in
How to find the path to the file correctly?
I have a unit project and it contains chromedriver.exe. How to correctly specify the path to this file?
Answer the question
In order to leave comments, you need to log in
To solve this problem I used the following code:
string mainPath = AppDomain.CurrentDomain.BaseDirectory;
System.Environment.SetEnvironmentVariable("webdriver.chrome.driver", @"/path/to/where/you/ve/put/chromedriver.exe")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question