Sha256: 15f78d560fd2d3a09e06d1ffe2668adebe1d29f990969381e272e529751ad8fd
Contents?: true
Size: 512 Bytes
Versions: 35
Compression:
Stored size: 512 Bytes
Contents
module Watir module Locators class Button class Validator < Element::Validator def validate(element, selector) return unless %w[input button].include?(element.tag_name.downcase) # TODO - Verify this is desired behavior based on https://bugzilla.mozilla.org/show_bug.cgi?id=1290963 return if element.tag_name.downcase == "input" && !Watir::Button::VALID_TYPES.include?(element.attribute(:type).downcase) element end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems