Fixing another bug in detecting fields via XPath
This commit is contained in:
parent
4f530cfa29
commit
8770ccb563
@ -26,7 +26,7 @@ module Webrat
|
||||
end
|
||||
|
||||
fields_by_type(field_types).detect do |possible_field|
|
||||
possible_field.path == element.xpath
|
||||
possible_field.path == expected_path
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user