【发布时间】:2013-11-14 13:13:29
【问题描述】:
我使用 capybara 和 selenium 测试我的 rails 项目。当我执行测试脚本时,它有这样的错误
Selenium::WebDriver::Error::WebDriverError:
Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=
我谷歌how to use Google Chrome as the testing browser instead of Firefox
但它会发生其他错误,例如
Selenium::WebDriver::Error::WebDriverError:
unable to connect to chromedriver http://127.0.0.1:9515
【问题讨论】:
-
你有什么版本的 Firefox 和 Chrome?它们究竟安装在哪里?
-
我通过brew安装了firefox,firefox的版本是“firefox:21.0”
-
您可以发布您的 gemfile 以及您的黄瓜 env 文件吗?