Sha256: 755d68baff07f6b34b86d4261ee3dda83cfb7f423aabeb007798a06740826e40
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true module Watir module Locators class Button class Matcher < Element::Matcher def validate_tag(element, _expected) tag_name = fetch_value(element, :tag_name) 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
4 entries across 4 versions & 1 rubygems