- Defined in:
#click_button([locator], **options) ⇒
Finds a button on the page and clicks it.
This can be any
<input> element of type submit, reset, image, button or it can be a
<button> element. All buttons can be found by their id, name, attribute, value, or title.
<button> elements can also be found
by their text content, and image
<input> elements by their alt attribute.
57 58 59
# File 'lib/capybara/node/actions.rb', line 57 def (locator = nil, **) find(:button, locator, ).click end