# File lib/capybara/node/actions.rb, line 12 def click_link_or_button(locator) msg = "no link or button '#{locator}' found" find(:xpath, XPath::HTML.link_or_button(locator), :message => msg).click end