Sha256: 28547f3e87f918361ee8343eb46ca995d2725f6260519c4a234819d618eaa1ca
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
module Watir module Locators class Button class Validator < Element::Validator def validate(element, _selector) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-6.14.0 | lib/watir/locators/button/validator.rb |