MacOS Catalina(v 10.15.3): Error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser

后端 未结 9 520
萌比男神i
萌比男神i 2021-01-29 20:14

I have recently upgraded my mac machine to OS Catalina(v 10.15.3). After this upgrade I am unable to launch the chrome driver using selenium.

I am facing the below error

9条回答
  •  离开以前
    2021-01-29 21:17

    I found the work around as below

    1. Open terminal
    2. Navigate to path where your chromedriver file is located
    3. Execute any one of the below commands

    Command1: xattr -d com.apple.quarantine

    Example

    /usr/local/Caskroom/chromedriver 
    $ xattr -d com.apple.quarantine chromedriver 
    

    (or)

    Command2: spctl --add --label 'Approved'

    Source: https://docwhat.org/upgrading-to-catalina

    Note: This will work only with the file(s) where the above command is executed. If a new chromedriver is downloaded then the command has to be executed again on the newly downloaded file

提交回复
热议问题