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
tdiary-5.0.11 vendor/bundle/gems/capybara-3.6.0/lib/capybara/selector/filters/node_filter.rb
capybara-3.10.1 lib/capybara/selector/filters/node_filter.rb
capybara-3.10.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.9.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.8.2 lib/capybara/selector/filters/node_filter.rb
capybara-3.8.1 lib/capybara/selector/filters/node_filter.rb
capybara-3.8.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.7.2 lib/capybara/selector/filters/node_filter.rb
capybara-3.7.1 lib/capybara/selector/filters/node_filter.rb
capybara-3.7.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.6.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.5.1 lib/capybara/selector/filters/node_filter.rb
capybara-3.5.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.4.2 lib/capybara/selector/filters/node_filter.rb
capybara-3.4.1 lib/capybara/selector/filters/node_filter.rb
capybara-3.4.0 lib/capybara/selector/filters/node_filter.rb
tdiary-5.0.9 vendor/bundle/gems/capybara-3.2.1/lib/capybara/selector/filters/node_filter.rb
capybara-3.3.1 lib/capybara/selector/filters/node_filter.rb
capybara-3.3.0 lib/capybara/selector/filters/node_filter.rb
capybara-3.2.1 lib/capybara/selector/filters/node_filter.rb