In this post, we will learn the steps involved to fix the following error: The ChromeDriver could not be found on the current PATH.
● Test suite failed to run
The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver from http://chromedriver.storage.googleapis.com/index.html and ensure it can be found on your PATH.
The root cause for error is that the Chrome Driver file is not in the system PATH. Add the directory that contains the Chrome browser driver file to the PATH environment variable.
To check the environment variable PATH on the machine. Download ChromeDriver and add the directory it to the system PATH.
Search for Edit the system environment variables in the search bar. Click on the Environment Variables... button.
Under System variables, select the Path variable and click on the Edit… button. Click on the New button and add the driver directory.
We can verify the PATH environment variable that is effective on the system by the following commands.
Launch the command prompt. Type the following command.
\> echo %PATH%
Launch Terminal/Konsole. Type the following command.
$ echo $PATH