Resolved issue 3462: For sendKeys, CMD key don't work for MAC Resolved issue 3541: Improve log between Client and ChromeDriver Resolved issue 3559: Output Chrome version when ChromeDriver reports incompatible. Selenium IDE is a Chrome and Firefox plugin which records and plays back user interactions with the browser. Use this to either create simple scripts or assist in exploratory testing. Download latest released version for Chrome or for Firefox or view the Release Notes. Download previous IDE versions here. Additionally, ChromeDriver is a standalone server that interacts with Selenium WebDriver to execute all selenium tests on the Chrome browser. Moreover, ChromeDriver provides executable specific to each platform, such as Windows, macOS, etc., which can be downloaded and used for execution on Selenium tests on the Chrome browser. 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.
Selenium is great for automated testing of web-apps and I’ve been using the Selenium IDE Firefox extension for a few months now.
For completeness of automated testing for web apps you need to do this in a number of different browsers which Selenium IDE doesn’t do. So you’ll need to download and install Selenium on your Mac.
June 2020 - this article is out of date - checkout my updated post on Automated Testing
Download Chromedriver to your Mac
Wondershare video editor full version free download for mac. Head over to the Chromedriver Project page and download the latest package.
You then need to unzip the package and then copy the file to /usr/bin
This is a hidden system folder so the easy way to get to this file is
- Open another finder window
- From the Go menu select Go To Folder
- Type /usr/bin and press enter
Now drag n drop the Chromedriver file from your Download folder to this directory. You’ll be prompted for you Admin password.
Finally, I suggest you restart your computer as the next step didn’t work when I tried it.
Basic Test Case for Chromedriver and Selenium
If you’ve already followed my guide to setup Selenium via Python then this will look familiar
Open a terminal window and type the following, pressing enter at the end of each line
After a few seconds, if all is well a new instance of Chrome will open
To finish the test just type
driver.get('http://www.damien.co')
![Chromedriver mac os Chromedriver mac os](/uploads/1/3/4/1/134104380/191328504.png)
To exit Python from your open Terminal, press ctrl+z
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.
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
Update Chromedriver Mac
Oh and if this article worked for you please consider sharing it or buying me coffee to say thanks.