我已经从http://chromedriver.storage.googleapis.com/index.html安装了chrome-driver,并且也安装了Google Chrome浏览器。 我希望能够使用Chrome浏览器而不是Firefox浏览器来运行cucumber测试用例,但我卡在了这个错误上。 非常感谢任何帮助。
我已经从http://chromedriver.storage.googleapis.com/index.html安装了chrome-driver,并且也安装了Google Chrome浏览器。 我希望能够使用Chrome浏览器而不是Firefox浏览器来运行cucumber测试用例,但我卡在了这个错误上。 非常感谢任何帮助。
我遇到了这个问题,是由于使用rbenv shim进行路径覆盖引起的。
值得检查一下which chromedriver
指向哪里。
对于我来说,解决方法是:
gem uninstall chromedriver-helper
和brew install chromedriver
chromedriver-helper
gem 也把我的系统搞糟了 :-) - sekmogem uninstall chromedriver-helper
命令时,我看到了"除了 gem 之外,是否删除可执行文件: chromedriver?" 的消息,并选择了是。 - kangkyurm /usr/local/opt/rbenv/versions/2.2.4/bin/chromedriver
和 rm /usr/local/opt/rbenv/shims/chromedriver
。 - ka8725$ rbenv rehash
C:\Users\Administrator\Downloads\x64>ansicon.exe -i
之后,我决定不再使用ansicon。不要使用ansicon1.60来实现彩色屏幕。
运行cmd /d,它会启动命令提示符而不处理其AutoRun条目,从而绕过ANSICON。然后你应该只需要执行\x64\ansicon -u即可。
打开终端并使用以下命令下载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