1
0
Fork 0
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:
Thorbjørn Hermansen 2010-01-15 16:29:01 +01:00
parent 233dbbde4c
commit 4a665f9eeb

View file

@ -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