java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property;

When people begin their work with Selenium they usually start with FirefoxDriver.…

The path to the driver executable must be set by the webdriver.chrome.driverWhen people begin their work with Selenium they usually start with FirefoxDriver. When they try to switch to ChromeDriver they see exception in runtime, which says that you should specify the path to the driver executable in the system property called webdriver.chrome.driver.