V
V
Valera Figol2017-02-02 13:46:45
Software testing
Valera Figol, 2017-02-02 13:46:45

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?abe44d543d3c40388e11ee364de6d323.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Valera Figol, 2017-04-28
@Kamrit

To solve this problem I used the following code:

string mainPath = AppDomain.CurrentDomain.BaseDirectory;

S
Sergey Blokhin, 2017-02-02
@TITnet

System.Environment.SetEnvironmentVariable("webdriver.chrome.driver", @"/path/to/where/you/ve/put/chromedriver.exe")

M
Max, 2017-02-02
@Maxon4eg92

/Data/chromedriver.exe - Not working?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question