How to setup Chrome driver with Selenium on MacOS?

0 votes
How to setup Chrome driver with Selenium on MacOS?
Jul 18, 2019 in Selenium by Nushrat
8,277 views

2 answers to this question.

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.
answered Jul 18, 2019 by Anvi
• 14,090 points
+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 4 days ago by Shipra
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!

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,890 points
5,798 views
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,890 points
4,057 views
+1 vote
1 answer
0 votes
2 answers

How to save as PDF on Chrome using Selenium

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

answered Feb 21 in Selenium by Abdul
15,053 views
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
2,816 views
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
• 27,930 points
9,638 views
0 votes
1 answer

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,510 points
3,175 views
0 votes
1 answer
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,890 points
2,380 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,890 points
2,533 views