Method: Capybara::Session#has_field?

Defined in:
lib/capybara/session.rb

#has_field?(locator, options = {}) ⇒ Boolean

Returns:

  • (Boolean)


199
200
201
# File 'lib/capybara/session.rb', line 199

def has_field?(locator, options={})
  has_xpath?(XPath.field(locator, options))
end