Installing ChromeDriver on Windows
Installing on Windows 7 & 10:
The following are the best ways to install ChromeDriver on Windows so you can run Selenium:
- The easiest way to install ChromeDriver is to use a package manager such as Chocolatey. You should really have a package manager if you don’t now:
- Install Chocolatey. I used the cmd.exe method and it worked really quickly.
- Install ChromeDriver
choco install chromedriver
- Confirm it was installed by typing
chromedriver —version
into your command line and seeing that it returns a version number. If it errors, ChromeDriver wasn’t installed.
- Or run Chrome & ChromeDriver in a container such as Docker. Simply download the combined container, start it and point your code at the right address. Here’s an example.
Which methods have you found the easiest or most success with? Which methods didn’t work for you? Please leave a comment below.
If this article worked for you please consider following me on twitter, sharing it or buying me coffee!