> ## Content Index
> Fetch the complete content index at: https://www.kenst.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Installing ChromeDriver on macOS
- URL: https://www.kenst.com/installing-chromedriver-on-mac-osx/
- Published: 2015-03-24T20:53:00.000Z
- Updated: 2022-06-10T00:08:26.000Z
- Author: Chris Kenst
- Tags: Selenium, Configuration, Test Automation, Tutorials

![](https://storage.ghost.io/c/64/2d/642d9fac-06bc-48ce-a22c-14219bd777e6/content/images/wordpress/2015/03/IMG_0336.png)

The ChromeDriver [getting started guide](https://sites.google.com/a/chromium.org/chromedriver/getting-started?ref=kenst.com) isn’t super helpful if you are unfamiliar with including the ChromeDriver location in your [PATH environment variable](https://www.kenst.com/including-the-chromedriver-location-in-macos-system-path/). (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 install cask` `chromedriver`
    - Confirm it was installed using `chromedriver --version` and seeing it returns a version. If it errors it wasn’t installed
  - Other package managers like npm have similar commands `npm install chromedriver`
- Run Chrome & ChromeDriver in a [container using Docker](https://www.kenst.com/how-to-run-your-tests-with-headless-chrome-ruby-version/). Simply download the combined container, start it and point your code at the right address.
- [Specify it in your Selenium setup code](http://elementalselenium.com/tips/29-chrome-driver?ref=kenst.com) 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](https://www.kenst.com/including-the-chromedriver-location-in-macos-system-path/).

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

- [Install ChromeDriver in your System PATH](https://www.kenst.com/including-the-chromedriver-location-in-macos-system-path/)
- [Install ChromeDriver on Windows](https://www.kenst.com/installing-chromedriver-on-windows/)
- [Install SafariDriver on macOS](https://www.kenst.com/installing-safaridriver-on-macos/)

Oh and if this article worked for you please consider sharing it or [buying me coffee](https://ko-fi.com/ckenst?ref=kenst.com) to say thanks.