I get this error when I try to run my test in Chrome:
Initialization method AutomationUsingSelenium.SmuladorChrome.MyTestInitialize threw exception. OpenQA.Selenium.DriverServiceNotFoundException: OpenQA.Selenium.DriverServiceNotFoundException
What is the cause?
Finally I resolved my issue as follows:
1) I copied chromedriver.exe in Chrome directory link, but you can put it in any directory. I decided to put it here.
2) I Initialized a new instance of the
ChromeDriverclass using the specified// path to the directory containing ChromeDriver.exe
My code:
And it works just perfect. Thanks All.