mac os 安装 geckodriver

连接:bash

http://remarkablemark.org/blog/2016/11/06/selenium-geckodriver/网站

在网上搜了不少方法,都是又麻烦又不起做用。code

最后仍是在这个网站找到简洁方便的方法。blog

 

首先经过brew 安装rem

$ brew install geckodriver

而后设置配置文件~/.bash_profile文件selenium

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

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

在安装完成后,终端会输出你的路径,在原来的路径后面加上bin就能够了。配置

最后执行代码让修改生效file

source ~/.bash_profile
相关文章
相关标签/搜索