Method: Capybara::Session#has_checked_field?

Defined in:
lib/capybara/session.rb

#has_checked_field?(locator) ⇒ Boolean

Returns:

  • (Boolean)


207
208
209
# File 'lib/capybara/session.rb', line 207

def has_checked_field?(locator)
  has_xpath?(XPath.field(locator, :checked => true))
end