1. Check the browser version
2. Download the driver
3. Install the driver
4. MacOS cannot open "chromedriver" because the developer cannot be verified
1. Check the browser version
and insert image description here
2. Download the driver
Download driver address: Link: http://chromedriver.storage.googleapis.com/index.html.
Download the driver that is consistent with the browser version.
Insert picture description here
. The version marked in the picture I downloaded, m1 downloads the m1 driver.
3.Install the driver
After decompression, place it in the directory /usr/local/bin
4.MacOS cannot open "chromedriver" because the developer cannot be verified
Open the terminal
, switch directories, the directory where chromedriver is located, /usr/local/bin
and execute the following command (choose one of the two)
//Delete the isolation of chromedriver
xattr -d com.apple.quarantine chromedriver
//Add permission to chromedriver
spctl --add --label 'Approved' chromedriver
5. Test
Open iTerm and enter: chromedriver --version. If it is consistent with the downloaded version, the installation is successful.
MAC system installation chromedriver_chromedriver mac installation-CSDN Blog