zl程序教程

您现在的位置是:首页 >  系统

当前栏目

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

OSChromeOnMac Error to The Cannot
2023-09-14 08:59:12 时间

Step 1 — Find chromedriver binary path

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

which chromedriver

 

The output should be similar to:

terminal output
/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:

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.