Docker + Rspec +水豚 – 参数是未定义的

我试图得到我的规格在docker工作无头 – 他们在我的Mac本地运行良好,但是当我在docker集装箱内运行他们,我得到这个错误(重复多次)

Selenium::WebDriver::Error::JavascriptError: arguments[0] is undefined # [remote server] https://foobar.com/ line 68 > Function:1:1:in `anonymous' # [remote server] https://foobar.com/:68:20:in `handleEvaluateEvent' # ./spec/features/foo_spec.rb:15:in `block (2 levels) in <top (required)> 

Xvfb正在运行: Xvfb :99.0 -screen 0 1366x768x16

我也尝试做一个xvfb-run rspec并得到相同的错误。

spec_helper.rb:

 Capybara.default_driver = :selenium Capybara.javascript_driver = :selenium 

这是怎么回事,这不能运行在docker?

这个错误的原因是这样的:

 >> webdriver.execute_script("return typeof arguments[0]", "foo") => "undefined" 

显然这是Firefox 35和webdriver的一个错误。 有一个问题打开 – https://code.google.com/p/selenium/issues/detail?id=8390