Sha256: 167132e0a11e71f7cc42ecd999be29ca8aa42e8b1a9db443f99bf38e47d1ffd0
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
module Watir module Locators class Button class Validator < Element::Validator def validate(element, _tag_name) tag_name = element.tag_name.downcase return unless %w[input button].include?(tag_name) # TODO: - Verify this is desired behavior based on https://bugzilla.mozilla.org/show_bug.cgi?id=1290963 return if tag_name == 'input' && !Watir::Button::VALID_TYPES.include?(element.attribute(:type).downcase) element end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-6.15.1 | lib/watir/locators/button/validator.rb |
watir-6.15.0 | lib/watir/locators/button/validator.rb |