lib/chop/form.rb in chop-0.23.0 vs lib/chop/form.rb in chop-0.23.1

- old
+ new

@@ -133,11 +133,11 @@ field[:type] == "radio" end def fill_in! if nonstandard_labelling? - session.choose value + value_field.click else session.choose label end end @@ -150,10 +150,10 @@ def nonstandard_labelling? value_field[:name] == field[:name] end def value_field - session.find_field(value) + session.first("[name='#{field[:name]}'][value='#{value}']") rescue Capybara::ElementNotFound {} end end