“chromedriver” can’t be opened because Apple cannot check it for malicious software.
This issue can occur when you download the chromedriver from internet and try to use it for Python programs with Selenium on your Mac.
To solve this issue, open a terminal on your Mac, navigate to the location of the chromedriver file, and run the following command.
$ xattr -d com.apple.quarantine chromedriver
If you update your chrome browser, and download the chromedriver again for Selenium using Python, you may have to execute the above command for the new chromedriver file.