Class: Capybara::RackTest::CSSHandlers

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara/rack_test/css_handlers.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) disabled(list)



2
3
4
# File 'lib/capybara/rack_test/css_handlers.rb', line 2

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

- (Object) enabled(list)



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

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