【发布时间】:2019-09-09 15:56:38
【问题描述】:
我已在本地设置 Chromedriver 以使用我的 Rails 堆栈并成为我的 RSpec 测试的浏览器执行器。
在本地运行良好,但在 CircleCI 上失败并出现以下错误:
Selenium::WebDriver::Error::WebDriverError:
unable to connect to chromedriver 127.0.0.1:9515
# ./spec/spec_helper.rb:190:in `raise_with_helpfulness'
# ./spec/integration/navigate_site_pages_spec.rb:77:in `block (4 levels) in <top (required)>'
所有需要浏览器的规范都会发生这种情况。 Chromedriver 和 chrome 都使用他们自己的专有球体安装在圆圈上,我已经通过 SSH 确认了这一点。但我仍然得到这个错误。
【问题讨论】: