Sha256: 58ba87a1cc45b357233a9db50ad5748934cccbfa00e26f7aacb9b0ee9f4a9e66
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
module Watir module Locators class TextField class Validator < Element::Validator def validate(element, _tag_name) # Zero for Ruby 2.3, Ruby 2.4+ this evaluates true/false result = element.tag_name.casecmp('input') result.zero? || result.eq(true) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-6.15.1 | lib/watir/locators/text_field/validator.rb |
watir-6.15.0 | lib/watir/locators/text_field/validator.rb |