lib/chop/form.rb in chop-0.23.1 vs lib/chop/form.rb in chop-0.23.2
- old
+ new
@@ -150,10 +150,10 @@
def nonstandard_labelling?
value_field[:name] == field[:name]
end
def value_field
- session.first("[name='#{field[:name]}'][value='#{value}']")
+ session.find("[name='#{field[:name]}'][value='#{value}']")
rescue Capybara::ElementNotFound
{}
end
end