# File lib/capybara/node/actions.rb, line 36 def click_button(locator) msg = "no button with value or id or text '#{locator}' found" find(:xpath, XPath::HTML.button(locator), :message => msg).click end