Sha256: 4e385917041000f382e2e2ff968cf4cef0a05af600adca999db575443e644db4

Contents?: true

Size: 333 Bytes

Versions: 21

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

require 'capybara/selector/filters/base'

module Capybara
  class Selector
    module Filters
      class NodeFilter < Base
        def matches?(node, name, value)
          apply(node, name, value, true)
        rescue Capybara::ElementNotFound
          false
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
capybara-3.2.0 lib/capybara/selector/filters/node_filter.rb