Dev*_*bde 6 ruby selenium ruby-on-rails cucumber capybara
我已经从http://chromedriver.storage.googleapis.com/index.html安装了chrome-driver ,我也安装了两个Google-chrome浏览器.我想使用chrome浏览器而不是Firefox浏览器运行黄瓜测试用例,但我遇到了这个错误.任何帮助赞赏.谢谢
小智 21
我有这个问题,因为rbenv shim的路径覆盖.值得检查which chromedriver点数.
对我来说,修复是:
gem uninstall chromedriver-helper和brew install chromedriver
小智 5
如果你在linux机器上使用rbenv那么
使用下面的ruby版本将'chromedriver'复制到当前版本 -
cp chromedriver $ HOME/.rbenv/versions/2.2.0/bin
示例:cp chromedriver home/abc_user/.rbenv/versions/2.2.0/bin
然后设置权限像 -
chmod + x home/abc_user/.rbenv/versions/2.2.0/bin/chromedriver
打开终端并使用 cmd 下载 Chromedriver
$ wget http://chromedriver.storage.googleapis.com/2.7/chromedriver_linux64.zip
$ 解压 chromedriver_linux64.zip
$ cp chromedriver /usr/local/bin
$ chmod +x /usr/local/bin/chromedriver
| 归档时间: |
|
| 查看次数: |
12264 次 |
| 最近记录: |