Rails Feature tests failing after Yosemite upgrade

2019-08-01 14:50发布

Immediately after upgrading my Mac to Yosemite, some feature tests started failing, specifically steps using the fill_in method. The following step definition fails on the first fill_in.

def sign_in
  visit '/users/sign_in'
  fill_in "Email", :with => @visitor[:email]
  fill_in "Password", :with => @visitor[:password]
  click_button "Log in"
end

I get the following error;

Selenium::WebDriver::Error::JavascriptError: arguments[0] is undefined 

It was passing before the upgrade. Anyone else run into this?

1条回答
干净又极端
2楼-- · 2019-08-01 15:14

It turns out it was a Firefox update that broke things. I downgraded from 35.0 to 34.0.5 and the tests are passing now. See this post Docker + Rspec + Capybara - arguments[0] is undefined

Here is a link to a selenium bug report on the issue. https://code.google.com/p/selenium/issues/detail?id=8390&sort=-id&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary

查看更多
登录 后发表回答