fixed the issue. Will look into that further OK, after much meandering through Capybara's source files I found the problem. It seems that the #find_field method doesn't work properly when using Capybara-webkit. The method only failed on examples that had the js: true argument, so that should have been the first clue. Anyway it seems that the cause of this is some method naming conflict between capybara and capybara-webkit, but I didn't analyze it too closely and so I can't be sure. I changed the find_field('from_date') to find('#from_date') and everything works now. It also worked when changing to the :rack_test driver, but since I need webkit that's what I'll stick too. Is this issue documented anywhere??
Why is RSpec 2.13.0 / Capybara 2.1.0 not able to fill_in a field by it's label text in this test in Rails 4?
I wish did fix the issue. HTML ids are case sensitive and you've defined the Team label as applying to the id prepay_subject_Team, which does not appear in your page. Only the id prepay_subject_team exists (i.e. lower case t in Team). If the capitalization in the for attribute of a label element doesn't match the capitalization of the id attribute of it's matching input element, Capybara can't find the input element.