How to Setup ChromeDriver on Mac

Complete tutorial on setting up ChromeDriver on macOS for web automation and testing. Includes download instructions, installation steps, and permission configuration for seamless browser automation.

T Theodoros Kafantaris September 12, 2024 1 min read
How to Setup ChromeDriver on Mac

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:

Code
                    sudo mv chromedriver /usr/local/bin/
                

We are giving the right permissions to the executable:

Code
                    chmod +x /usr/local/bin/chromedriver 
                

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

Code
                    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!

Share this post

Back to Blog

Let's talk

Stay Curious. Stay Inspired.

Join our community of thinkers, developers, and lifelong learners. Explore ideas that challenge and inspire you to think differently.