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
5 6 7 |
# File 'lib/capybara/rack_test/css_handlers.rb', line 5 def disabled list list.find_all { |node| node.has_attribute? 'disabled' } end |
#enabled(list) ⇒ Object
8 9 10 |
# File 'lib/capybara/rack_test/css_handlers.rb', line 8 def enabled list list.find_all { |node| !node.has_attribute? 'disabled' } end |