module Capybara::Node::Finders

def find_button(locator = nil, **options, &optional_filter_block)

Returns:
  • (Capybara::Node::Element) - The found element

Options Hash: (**options)
  • class (String, Array) -- Match buttons that match the class(es) provided
  • value (String) -- Match buttons with the value provided
  • title (String) -- Match buttons with the title provided
  • id (String) -- Match buttons with the id provided
  • disabled (Boolean, Symbol) -- Match disabled button?

Overloads:
  • find_button(options={})
  • find_button([locator], options={})

Parameters:
  • locator (String) -- id, value, title, text content, alt of image
def find_button(locator = nil, **options, &optional_filter_block)
  find(:button, locator, options, &optional_filter_block)
end