I'm trying to set up selenium tests in nCrunch which outputs the tests to its own temp folder.
I'm getting the following error when I create the driver (new PhantomJSDriver()
):
OpenQA.Selenium.DriverServiceNotFoundException : The PhantomJS.exe file does not exist in the current directory or in a directory on the PATH environment variable.
However I have checked and PhantomJS.exe
does exist in the current directory (\bin\debug).
I then tried using new PhantomJSDriver(".\\")
which should be the current directory and that does work.
What is the "current directory" Selenium is referring to in this message?