mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Updated the the error text for a failing click_link.
It does now reflect the fact that it also looks for images within an a-tag which has the locator as it's alternative text.
This commit is contained in:
parent
233dbbde4c
commit
4a665f9eeb
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def click_link(locator)
|
||||
msg = "no link with title, id or text '#{locator}' found"
|
||||
msg = "no link with title, id or containing text / image with alternative text like '#{locator}' found"
|
||||
locate(XPath.link(locator), msg).click
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue