Method: Capybara::Node::Simple#selected?

Defined in:
lib/capybara/node/simple.rb

#selected?Boolean

Whether or not the element is selected.

Returns:

  • (Boolean)

    Whether the element is selected



139
140
141
# File 'lib/capybara/node/simple.rb', line 139

def selected?
  native.has_attribute?('selected')
end