Class: Capybara::RackTest::CSSHandlers

Inherits:
BasicObject
Includes:
Kernel
Defined in:
lib/capybara/rack_test/css_handlers.rb

Instance Method Summary collapse

Instance Method Details

#disabled(list) ⇒ Object



4
5
6
# File 'lib/capybara/rack_test/css_handlers.rb', line 4

def disabled list
  list.find_all { |node| node.has_attribute? 'disabled' }
end

#enabled(list) ⇒ Object



7
8
9
# File 'lib/capybara/rack_test/css_handlers.rb', line 7

def enabled list
  list.find_all { |node| !node.has_attribute? 'disabled' }
end