Skip to content

Commit

Permalink
Fixing another bug in detecting fields via XPath
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Nov 27, 2008
1 parent 4f530cf commit 8770ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webrat/core/form.rb
Expand Up @@ -26,7 +26,7 @@ def field_by_element(element, *field_types)
end

fields_by_type(field_types).detect do |possible_field|
possible_field.path == element.xpath
possible_field.path == expected_path
end
end

Expand Down

0 comments on commit 8770ccb

Please sign in to comment.