mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Fix error message for missing fields
This commit is contained in:
parent
b5e4314178
commit
df5dc1ddbf
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ private
|
|||
|
||||
def find_field(locator, *kinds)
|
||||
field = find_field_by_id(locator, *kinds) || find_field_by_label(locator, *kinds)
|
||||
raise Capybara::ElementNotFound, "no field of kind #{kinds.inspect} with id or'#{locator}' found" unless field
|
||||
raise Capybara::ElementNotFound, "no field of kind #{kinds.inspect} with id or label '#{locator}' found" unless field
|
||||
field
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue