Class: Capybara::RackTest::CSSHandlers

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) disabled(list)



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

- (Object) enabled(list)



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