Choose a WebDriver language binding. The last component you must download is a language-specific client driver to translate your code (Python, Java, C#, Ruby, JavaScript) into commands the Microsoft Edge Driver runs in Microsoft Edge (Chromium). Download the WebDriver language binding of your choice. Adding System.setProperties('driver','path'), Creating WebDriver, and opening google page NOTE: IF YOU ARE USING WINDOWS, FIND THE RIGHT PATH FOR CHROMEDRIVER. MAKE SURE TO USE.exe EXTENSION FOR. ChromeDriver is actually the WebDriver for Chrome. ChromeDriver is available for Chrome on Desktop (Mac, Linux, Windows and ChromeOS). Pre-requisite: Before proceeding to the download steps, we need to check our chrome browser version in order to download compatible version of ChromeDriver for Chrome. Step 1: Open Chrome Browser. In order to use Google Chrome with Splinter, since we’re using Selenium 2.3.x, you need to setup Chrome webdriver properly. Mac OS X ¶ The recommended way is by using Homebrew. Selenium WebDriver. If you want to create robust, browser-based regression automation suites and tests, scale and distribute scripts across many environments, then you want to use Selenium WebDriver, a collection of language specific bindings to drive a browser - the way it is meant to be driven.
The ChromeDriver getting started guide isn’t super helpful if you are unfamiliar with including the ChromeDriver location in your PATH environment variable. (The PATH variable helps Chrome find the downloaded ChromeDriver exe). Also it’s a lot of work for something so common. Never fear, here is a better way:
Installing on macOS:
Listed in order of easiest to hardest install, these are the best ways to install ChromeDriver on a Mac:
- The easiest way to install ChromeDriver is to use your package manager such as brew or npm to install the driver.
- In your terminal window with the Homebrew package manager:
- Install ChromeDriver with
brew cask install chromedriver
- Confirm it was installed using
chromedriver --version
and seeing it returns a version. If it errors it wasn’t installed
- Install ChromeDriver with
- Other package managers like npm have similar commands
npm install chromedriver
- In your terminal window with the Homebrew package manager:
- Run Chrome & ChromeDriver in a container using Docker. Simply download the combined container, start it and point your code at the right address.
- Specify it in your Selenium setup code and check it into source control like any other configuration detail. If you go this route, you can include additional drivers like GeckoDriver (aka Firefox) as well.
- Download the driver and add its location to your System PATH.
![Download Chrome Webdriver For Mac Download Chrome Webdriver For Mac](/uploads/1/1/9/5/119589277/388823487.jpg)
Chrome Driver For Selenium Webdriver
Which methods have you found the easiest or most success with? Which methods didn’t work for you? Please leave a comment below.
Additional Resources
Webdriver Chrome Options
![Download Chrome Webdriver For Mac Download Chrome Webdriver For Mac](/uploads/1/1/9/5/119589277/246064308.png)
Google Chrome Webdriver Download
Oh and if this article worked for you please consider sharing it or buying me coffee to say thanks.