class Capybara::Node::Simple

def selected?

Returns:
  • (Boolean) - Whether the element is selected
def selected?
  native.has_attribute?('selected')
end