How To Setup Chrome Driver With Selenium On MacOS - Edureka

52315/how-to-setup-chrome-driver-with-selenium-on-macos

  • Home
  • Community
  • Categories
  • Selenium
  • How to setup Chrome driver with Selenium on MacOS
How to setup Chrome driver with Selenium on MacOS 0 votes How to setup Chrome driver with Selenium on MacOS?
  • selenium-webdriver
  • selenium
  • selenium-testing
  • chromedriver
  • macos
Jul 18, 2019 in Selenium by Nushrat 82,733 views answer comment
  • flag

Your comment on this question:

Your name to display (optional):
Email me at this address if a comment is added after mine:
Privacy: Your email address will only be used for sending these notifications.
Add comment Cancel

4 answers to this question.

Your answer

Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Privacy: Your email address will only be used for sending these notifications.
Add answer Cancel
0 votes

Hey Nushrat, setting up Chrome driver with Selenium is an easy task for Windows OS, but in MacOS you have follow this procedure:

  1. Download the Chrome drivers for MAC from here: http://chromedriver.storage.googleapis.com/index.html?path=76.0.3809.68/

  2. Now, in MAC navigate to one directory called /usr/local/:

  3. In the above folder, check if bin folder is there or not. If not, create a bin folder and copy the driver in /usr/local/bin :

And that's it. you have configured the chrome driver for Selenium. The good thing here is that we don’t have to remember the path variable like webdriver.chrome.driver in Windows.

For further understanding, you can refer to the Selenium Certification.

answered Jul 18, 2019 by Anvi 14,150 points comment
  • flag
  • ask related question

Your comment on this answer:

Your name to display (optional):
Email me at this address if a comment is added after mine:
Privacy: Your email address will only be used for sending these notifications.
Add comment Cancel
+1 vote Hi Nushrat, In MacOs follow the steps and u will get the chrome set up :: First and foremost check if any Antivirus is running. If so, Disable it. Second check the version of your chrome and make it latest to be in ur pc. Third get the chrome driver for the version of chrome u are using (like i used version 84 so got chrome driver for same version)and put the .exe file in the /usr/local/bin folder. If u cant find the /usr/local/bin then go to the terminal type:: chflags nohidden ~/usr Go to finder press CMD+Shift_G and go to the /usr/local/bin path and now paste the chrome driver .exe file. Now it shall surely run the webdriver.Chrome() All The Best! answered Aug 9, 2020 by Shipra comment
  • flag
  • ask related question
Hi @Shipra, thank you for your contribution to the Edureka Community. Register/Sign up on the community to gain points for further contributions. You may ask questions, answer, upvote, and downvote an answer. Each of these would fetch you points and you could be among the top contributors and win exciting merchandise from Edureka. Cheers! commented Aug 10, 2020 by Edureka
  • flag
  • reply

Your comment on this answer:

Your name to display (optional):
Email me at this address if a comment is added after mine:
Privacy: Your email address will only be used for sending these notifications.
Add comment Cancel
0 votes

System PATH Setup

  1. Open up Terminal.
  2. Run sudo nano /etc/paths.
  3. Enter your password.
  4. Go to the bottom of the file and enter the path you wish to add.
  5. My PATH looks like: /Users/myname/Documents/WebDriver.
  6. Control-x to quit.
  7. Y to save.
  8. Press enter to confirm
answered Dec 16, 2020 by Roshni 10,440 points comment
  • flag
  • ask related question

Your comment on this answer:

Your name to display (optional):
Email me at this address if a comment is added after mine:
Privacy: Your email address will only be used for sending these notifications.
Add comment Cancel
0 votes

Installing ChromeDriver on macOS

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
    • Other package managers like npm have similar commands npm install chromedriver
  • 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.

answered Dec 16, 2020 by Gitika 65,730 points comment
  • flag
  • ask related question
I had to slightly change the command to `brew install --cask chromedriver` commented May 22, 2021 by Nick edited Mar 6, 2025
  • flag
  • reply

Your comment on this answer:

Your name to display (optional):
Email me at this address if a comment is added after mine:
Privacy: Your email address will only be used for sending these notifications.
Add comment Cancel

Related Questions In Selenium

+1 vote 1 answer

How to handle notifications in Python with Selenium (Chrome WebDriver)

Below will help you: You can disable the ...READ MORE

answered May 11, 2018 in Selenium by Samarpit 5,910 points 16,212 views
  • selenium-webdriver
  • selenium
  • selenium-testing
0 votes 1 answer

How to resolve Pycharm Referenced Error with Import Selenium Web driver?

Below will help: Pycharm > Preferences > Project ...READ MORE

answered Jun 26, 2018 in Selenium by Samarpit 5,910 points 11,004 views
  • selenium
  • selenium-webdriver
  • selenium-testing
  • selenium-java
+1 vote 1 answer

How to download a file at a specified location through python and selenium using Chrome driver

Create a profile for chrome and define ...READ MORE

answered Jul 11, 2018 in Selenium by Samarpit 5,910 points 37,859 views
  • selenium
  • selenium-webdriver
  • selenium-testing
0 votes 2 answers

How to save as PDF on Chrome using Selenium

Vaishanvi, Select ID selected dropdown or it ...READ MORE

answered Feb 22, 2020 in Selenium by Abdul 36,432 views
  • selenium
  • selenium-webdriver
  • java
  • selenium-testing
0 votes 1 answer

How to check if an image is displayed on web page while working with Selenium WebDriver?

I've come across a similar situation before, where the image ...READ MORE

answered May 10, 2019 in Selenium by Surya 970 points 14,347 views
  • selenium-webdriver
  • selenium
  • selenium-testing
  • selenium-java
  • mouse-hovering
0 votes 1 answer

How can I download Microsoft WebDriver/Edge Driver to use with Selenium?

Hi William, to download Microsoft Webdriver or ...READ MORE

answered Jul 15, 2019 in Selenium by Abha 28,140 points 44,601 views
  • selenium
  • selenium-webdriver
  • microsoft-edge
  • edge-webdriver
0 votes 2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999 5,500 points 16,727 views
  • selenium-webdriver
  • selenium
  • selenium-testing
  • selenium-java
0 votes 2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri 3,190 points 11,587 views
  • selenium-webdriver
  • selenium
  • selenium-testing
  • selenium-java
0 votes 1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit 5,910 points 10,021 views
  • selenium-webdriver
  • selenium
  • selenium-testing
  • selenium-java
0 votes 2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath: /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri 3,190 points 9,992 views
  • selenium-webdriver
  • selenium
  • selenium-testing
  • selenium-java

Recent in Selenium

  • Selenium Project : Support Apr 9, 2025
  • Chrome Driver has starting But Web socket connection is appearing as null.Tried without Firewall still same issue.Kindly help Oct 15, 2024
  • Selenium Webdriver Java - Eclipse java lang NoClassDefFoundError Oct 1, 2024
  • How to download submitted assignment Mar 2, 2024
  • "Error: Unable to initialize main class Commands.Getcommands Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver" how to resolve this? Jan 26, 2024
  • All categories
  • Generative AI Generative AI (1,454)
  • Power BI Power BI (1,316)
  • DevOps & Agile DevOps & Agile (4,138)
  • Data Science Data Science (100)
  • ChatGPT ChatGPT (30)
  • Cyber Security & Ethical Hacking Cyber Security & Ethical Hacking (1,057)
  • Data Analytics Data Analytics (1,266)
  • Cloud Computing Cloud Computing (4,053)
  • Machine Learning Machine Learning (337)
  • PMP PMP (1,069)
  • Python Python (3,488)
  • SalesForce SalesForce (201)
  • Selenium Selenium (1,624)
  • Software Testing Software Testing (58)
  • Tableau Tableau (608)
  • Web Development Web Development (3,972)
  • UI UX Design UI UX Design (24)
  • Java Java (1,358)
  • Azure Azure (157)
  • Database Database (858)
  • Big Data Hadoop Big Data Hadoop (1,907)
  • Blockchain Blockchain (1,673)
  • Digital Marketing Digital Marketing (121)
  • C# C# (141)
  • C++ C++ (272)
  • IoT (Internet of Things) IoT (Internet of Things) (390)
  • Kotlin Kotlin (8)
  • Linux Administration Linux Administration (389)
  • MicroStrategy MicroStrategy (7)
  • Mobile Development Mobile Development (395)
  • Others Others (2,386)
  • RPA RPA (653)
  • Talend Talend (73)
  • TypeSript TypeSript (124)
  • Apache Kafka Apache Kafka (84)
  • Apache Spark Apache Spark (596)
  • Career Counselling Career Counselling (1,091)
  • Events & Trending Topics Events & Trending Topics (28)
  • Ask us Anything! Ask us Anything! (71)

Join the world's most active Tech Community!

Welcome back to the World's most active Tech Community!

Sign up with Gmail Sign up with Facebook

OR

Password must have

At least 1 upper-case and 1 lower-case letter

Minimum 8 characters and Maximum 50 characters

SIGN UP Already have an Edureka Account? Login Forgot Password? LOGIN Don’t have edureka account? Sign Up resend ? Password must have

At least 1 upper-case and 1 lower-case letter

Minimum 8 characters and Maximum 50 characters

reset password Don’t have edureka account? Sign Up reset password Don’t have edureka account? Sign Up Send Code Don’t have edureka account? Sign Up

Subscribe to our Newsletter, and get personalized recommendations.

Google Sign up with Google facebook Signup with Facebook

Already have an account? Sign in.

webinar REGISTER FOR FREE WEBINAR X Years of Experience* Student 0-2 Years 2-5 Years 5-10 Years 10+ Years REGISTER NOW webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP "PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.

Tag » Where To Put Chromedriver Mac