Mac中selenium使用出现错误

解决方案是:

首先通过brew 安装

$ brew install geckodriver

然后设置配置文件~/.bash_profile文件

export PATH=$PATH:/path/to/geckodriver

这里的路径一直到geckodriver下的bin目录

这样就可以了

原文地址:https://www.cnblogs.com/1a2a/p/9310104.html