Oct 09, 2020 · Updated: Oct 18, 2023 · 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 solution is to make Mac OS trust chromedriver binary. This can be done in two steps:
To find chromedriver binary path, run the following command in the terminal:
which chromedriver
The output should be similar to:
/opt/homebrew/bin/chromedriver
Now you need to tell Mac OS to trust this binary by lifting the quarantine. Do this by the following terminal command:
xattr -d com.apple.quarantine /opt/homebrew/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: