Method: Capybara::Node::Simple#disabled?

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

#disabled?Boolean

Whether or not the element is disabled.

Returns:

  • (Boolean)

    Whether the element is disabled



129
130
131
# File 'lib/capybara/node/simple.rb', line 129

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