Path for chromedriver
While setting path for chromedriver in the set property, we need to give path for chromedriver and also add chromedriver.exe at the end.
For eg:
C:/users/programs/workspace/chromedriver/chromedriver.exe
But if we are setting path in the environment variables for chromedriver, we just need to give path of the directory where chromedriver is kept. Advantage of this is you need not write this statement System. Setproperty("webdriver.chrome.driver","<chromedriver path>")
For eg : C:/users/programs/workspace/chromedriver/
Note: In this case you first need to set the path and then restart the system otherwise eclipse would not be able to recognise the path and will throw an error.In cmd if you write chromedriver.exe, it will execute automatically
Comments
Post a Comment