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 the method used to find web elements 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. Which of the following is not a commonly used assertion method in Selenium Python?

Not answered

Q4. What is the method used to switch to a different frame in Selenium Python?

Not answered

Q5. Which of the following is not a commonly used web element locator in Selenium Python?

Not answered
Code copied to clipboard successfully 👍