Selenium – “chromedriver” can’t be opened because Apple cannot check it for malicious software.

Solution

“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.

Related Tutorials

Quiz on Selenium

Q1. What is a web driver in Selenium Python?

Not answered

Q2. Which of the following is not a method to wait for a web element to load in Selenium Python?

Not answered

Q3. What is the method used to navigate back to the previous page in Selenium Python?

Not answered

Q4. What is the method used to take a screenshot in Selenium Python?

Not answered

Q5. What is the method used to clear the text from an input field in Selenium Python?

Not answered
Code copied to clipboard successfully 👍