Sha256: bde6bb853d81bba0f820b5961b120b5078eb9f001389448ee6422847a2b5d620
Contents?: true
Size: 631 Bytes
Versions: 24
Compression:
Stored size: 631 Bytes
Contents
# This is a generic HTML Element that is used to # locate all elements that share an attribute. The # most common example would be finding elements that # all share the same class. module Watir class HTMLElement < Element def initialize(container, how, what) set_container container @how = how @what = what if how == :index raise MissingWayOfFindingObjectException, "#{self.class} does not support attribute #{@how}" end super nil end def locate @o = @container.locate_tagged_element('*', @how, @what) end end end
Version data entries
24 entries across 24 versions & 1 rubygems