Method: Capybara::Session#has_button?

Defined in:
lib/capybara/session.rb

#has_button?(locator) ⇒ Boolean

Returns:

  • (Boolean)


191
192
193
# File 'lib/capybara/session.rb', line 191

def has_button?(locator)
  has_xpath?(XPath.button(locator))
end