How to setup ChromeDriver on Mac

Published by Theodoros Kafantaris

Sep 12, 2024

First of all, we visit the following link to download the relevant chromedriver for our Operating system.

https://googlechromelabs.github.io/chrome-for-testing/#stable

Now that we have downloaded the relevant chromedriver, we are opening the terminal in this folder.

And now we are moving the chromedriver to the right system folder:

sudo mv chromedriver /usr/local/bin/

We are giving the right permissions to the executable:

chmod +x /usr/local/bin/chromedriver 

 Because macOS still prevents it from running, we can manually run this command to allow it:

xattr -d com.apple.quarantine /usr/local/bin/chromedriver

Finally, we are checking that chromedriver can run smoothly from the cli:

That's it! Enjoy it!

Ⓒ 2024. All rights reserved by atomic