lib/capybara/rack_test/css_handlers.rb



# frozen_string_literal: true

class Capybara::RackTest::CSSHandlers < BasicObject
  include ::Kernel

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

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