Sha256: b5c6adb49ced0d49ff3cff468e1a54fcfe0df3f70a6db91f4cbdd8730e05e2a3
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
module Watir module Locators class Element class Validator def validate(element, selector) selector_tag_name = selector[:tag_name] element_tag_name = element.tag_name.downcase if selector_tag_name return unless selector_tag_name === element_tag_name end if element_tag_name == 'input' return if selector[:type] && selector[:type] != element.attribute(:type) end element end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems