How To Setup Chrome Driver With Selenium On MacOS - Edureka
Maybe your like
- Home
- Community
- Categories
- Selenium
- 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 |
Hey Nushrat, setting up Chrome driver with Selenium is an easy task for Windows OS, but in MacOS you have follow this procedure:
-
Download the Chrome drivers for MAC from here: http://chromedriver.storage.googleapis.com/index.html?path=76.0.3809.68/
-
Now, in MAC navigate to one directory called /usr/local/:
-
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.
- 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 |
- flag
- ask related question
- 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 |
System PATH Setup
- Open up Terminal.
- Run sudo nano /etc/paths.
- Enter your password.
- Go to the bottom of the file and enter the path you wish to add.
- My PATH looks like: /Users/myname/Documents/WebDriver.
- Control-x to quit.
- Y to save.
- Press enter to confirm
- 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 |
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
- 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.
- flag
- ask related question
- 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 answerHow 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
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
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
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
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
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
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
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
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
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 (1,454) -
Power BI (1,316) -
DevOps & Agile (4,138) -
Data Science (100) -
ChatGPT (30) -
Cyber Security & Ethical Hacking (1,057) -
Data Analytics (1,266) -
Cloud Computing (4,053) -
Machine Learning (337) -
PMP (1,069) -
Python (3,488) -
SalesForce (201) -
Selenium (1,624) -
Software Testing (58) -
Tableau (608) -
Web Development (3,972) -
UI UX Design (24) -
Java (1,358) -
Azure (157) -
Database (858) -
Big Data Hadoop (1,907) -
Blockchain (1,673) -
Digital Marketing (121) -
C# (141) -
C++ (272) -
IoT (Internet of Things) (390) -
Kotlin (8) -
Linux Administration (389) -
MicroStrategy (7) -
Mobile Development (395) -
Others (2,386) -
RPA (653) -
Talend (73) -
TypeSript (124) -
Apache Kafka (84) -
Apache Spark (596) -
Career Counselling (1,091) -
Events & Trending Topics (28) -
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 FacebookOR
Password must haveAt 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 haveAt 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 UpSubscribe to our Newsletter, and get personalized recommendations.
Already have an account? Sign in.
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
-
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
-
How To Install Chromedriver For Mac OS X / Selenium / Python
-
Install And Launch Chromedriver For Mac, Linux Or Windows. - GitHub
-
Installing Selenium For Python On MacOS With ChromeDriver
-
Install Chromedriver On MacOS With MacPorts
Generative AI
Power BI
DevOps & Agile
Cyber Security & Ethical Hacking
Data Analytics
Cloud Computing
Machine Learning
Python
Selenium
Software Testing
Tableau
Web Development
Java
Database
Big Data Hadoop
Blockchain
IoT (Internet of Things)
Linux Administration
MicroStrategy
RPA
Talend
Apache Kafka
Apache Spark
Career Counselling
Events & Trending Topics