For Selenium, we define the chrome executable path in System.setProperty. When a URL is passed in driver.get and Chrome invokes:
1 - How does chrome executable know where Chrome browser is actually installed?
2 - What would happen if I do not have Chrome browser?
Responses appreciated!!
As per the Requirements of ChromeDriver:
The server expects you to have Chrome installed in the default location for each system as per the image below:
1For Linux systems, the ChromeDriver expects
/usr/bin/google-chrome
to be a symlink to the actual Chrome binary. In case you are using a Chrome executable in a non-standard location you have to override the Chrome binary location. as follows:Google chrome doesn't have built-in driver server, so you need to install ChromeDriver so that the selenium code communicates with the chrome browser.This ChromeDriver implements webdriver's wire protocol (client being system on which webdriver API is used & server being browser acting as/containing stand alone server). For Internet explorer one needs to install InternetExplorerDriver as stand alone server. For Selenium 3.0 & above to work with firefox, Geckodrver has to be installed.