What is default location of ChromeDriver and for installing Chrome on Windows
google-chrome, selenium, selenium-chromedriver, selenium-webdriver, webdriver
Solution
For any driver that Selenium must use to open the browser (`chromedriver`, `geckodriver`, etc), you don't have to worry about where it is installed, as long as it's set in the `PATH` variable.
If you have it set in the OS `PATH` variable, you must be able to run it from the `command` or `cmd` (it's always good to make sure it's working).
Here's how you can set it (append to the existing value):
- Article: https://www.computerhope.com/issues/ch000549.htm
- Video: https://www.youtube.com/watch?v=dz59GsdvUF8
Then you can just instantiate it as follows:
WebDriver driver = new FirefoxDriver();
OR
WebDriver driver = new ChromeDriver();
Hope it's somehow helpful.
Problem
I need to install `chromedriver` on Windows OS. In the article below they specify: https://sites.google.com/a/chromium.org/chromedriver/getting-started "...ChromeDriver expects you to have Chrome installed in the default location for your platform..." But I'm not sure what is the default location ? On Mac OS it's `/usr/local/bin`. With this I don't have to specify path explicitly or setup system path either. How to achieve the same on Windows OS?