我们在使用selenium和phantomjs时通常会出现如下错误: 原因是由于声明安装的phantomjs的路径。我们从官网http://phantomjs.org/download.html下载即可,然后 即可解决啦!