Sha256: 9c9da88232ec01c13c3a20e138201e856e55ec0749b11714070e186974f62008
Contents?: true
Size: 802 Bytes
Versions: 10
Compression:
Stored size: 802 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 TAG = "*" 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 Watir::Container.module_eval do def element(how={}, what=nil) HTMLElement.new(self, how, what) end def elements(how={}, what=nil) HTMLElements.new(self, how, what) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems