Method: Capybara::Node::Finders#find_button
- Defined in:
- lib/capybara/node/finders.rb
#find_button([locator], **options) ⇒ Capybara::Node::Element
Find a button on the page.
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, test_id attribute, value, or title.
<button>
elements can also be found by their text content, and image <input>
elements by their alt attribute.
184 185 186 |
# File 'lib/capybara/node/finders.rb', line 184 def (locator = nil, **, &optional_filter_block) find(:button, locator, **, &optional_filter_block) end |