MiscMisc

Fixing error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser on Mac OS

Oct 09, 2020 · Updated: Feb 02, 2021 · by Tim Kamanin

In this short tutorial, I will show you how to fix the following error:

chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser

The error might occur when you install Chromedriver on a Mac OS and try to run it for the first time. That happens because Mac OS blocks chromedriver binary by default.

The fix

The solution is to make Mac OS trust chromedriver binary. This can be done in two steps:

Step 1 — Find chromedriver binary path

To find chromedriver binary path, run the following command in the terminal:

bash
which chromedriver

The output should be similar to:

/usr/local/bin/chromedriver

Step 2 — Lift the quarantine for the chromedriver binary

Now you need to tell Mac OS to trust this binary by lifting the quarantine. Do this by the following terminal command:

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

Now, rerun your test or script, and it should be able to run chromedriver without the error.

Hey, if you've found this useful, please share the post to help other folks find it:

There's even more:

Subscribe for updates

  • via Twitter: @timonweb
  • old school RSS:
  • or evergreen email ↓ ↓ ↓