Sha256: abb47d0c4bb19a950c54793d8a93090e9fd1e6caa40516060741856a7bf0c13e

Contents?: true

Size: 386 Bytes

Versions: 30

Compression:

Stored size: 386 Bytes

Contents

module Watir
  module Locators
    class Element
      class Validator
        def validate(element, selector)
          selector_tag_name = selector[:tag_name]
          element_tag_name = element.tag_name.downcase

          if selector_tag_name
            return unless selector_tag_name === element_tag_name
          end

          element
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
watir-6.13.0 lib/watir/locators/element/validator.rb
watir-6.12.0 lib/watir/locators/element/validator.rb
watir-6.11.0 lib/watir/locators/element/validator.rb
watir-6.11.0.beta2 lib/watir/locators/element/validator.rb
watir-6.11.0.beta1 lib/watir/locators/element/validator.rb
watir-6.10.3 lib/watir/locators/element/validator.rb
watir-6.10.2 lib/watir/locators/element/validator.rb
watir-6.10.0 lib/watir/locators/element/validator.rb
watir-6.9.1 lib/watir/locators/element/validator.rb
watir-6.9.0 lib/watir/locators/element/validator.rb
watir-6.8.4 lib/watir/locators/element/validator.rb
watir-6.8.3 lib/watir/locators/element/validator.rb
watir-6.8.2 lib/watir/locators/element/validator.rb
watir-6.8.1 lib/watir/locators/element/validator.rb
watir-6.8.0 lib/watir/locators/element/validator.rb
watir-6.7.3 lib/watir/locators/element/validator.rb
watir-6.7.2 lib/watir/locators/element/validator.rb
watir-6.7.1 lib/watir/locators/element/validator.rb
watir-6.7.0 lib/watir/locators/element/validator.rb
watir-6.6.3 lib/watir/locators/element/validator.rb