mac下:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedr

解决方案(记录)

出现这个错误时,你的桌面上会有警告弹窗

1.这时候直接进入 系统偏好设置设置

mac下:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedr

2.点击安全与隐私

mac下:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedr

3. 点击对应的位置,

注意3这个位置,会提示是否仍然打开。然后继续弹窗里选择打开。就行了。最后仔将2处的锁,给锁上。

mac下:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedr

(说白了,就是系统提示不安全,不让你运行这个程序 chromdriver)