How To Install Chromedriver For Mac OS X / Selenium / Python
Maybe your like
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
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
| 1 2 3 | python from selenium import webdriver driver = webdriver.Chrome() |
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")
To exit Python from your open Terminal, press ctrl+z
Tags: Chromedriver, Selenium, TestingRead more from my blog for an introduction and quick tips on developing in Hugo or UCTD.
Meet the author
Damien Saunders An experienced management consultant and business leader interested in digital transformation, product centred design and scaled agile. If I'm not writing about living with UCTD (an autoimmune disease), I'm probably listening to music, reading a book or learning more about wine. Find our more about me. Tag » Where To Put Chromedriver Mac
-
How To Install Chrome Driver On Mac - Software Test Academy
-
Installing Selenium And ChromeDriver On OS X - Jonathan Soma
-
Using Selenium On Mac Chrome - Stack Overflow
-
Installing ChromeDriver On MacOS - Chris Kenst
-
How To Install Chromedriver On A Mac - YouTube
-
How To Install Selenium Chrome Driver On Mac - YouTube
-
How To Setup Chrome Driver With Selenium On MacOS - Edureka
-
ChromeDriver - WebDriver For Chrome
-
How To Setup Chrome Driver With Selenium On MacOS? - Tutorialspoint
-
Installing Chromedriver On Mac| Launch Chrome Browser On Mac
-
How To Run Selenium Tests On Chrome Using ChromeDriver
-
Install And Launch Chromedriver For Mac, Linux Or Windows. - GitHub
-
Installing Selenium For Python On MacOS With ChromeDriver
-
Install Chromedriver On MacOS With MacPorts