Class: Watir::HTMLElement
Constant Summary collapse
- TAG =
"*"
Constants inherited from Element
Instance Attribute Summary
Attributes inherited from Element
Attributes included from Container
#activeObjectHighLightColor, #page_container, #type_keys, #typingspeed
Instance Method Summary collapse
-
#initialize(container, how, what) ⇒ HTMLElement
constructor
A new instance of HTMLElement.
Methods inherited from Element
#<=>, #__ole_inner_elements, #activeObjectHighLightColor, #after_text, #assert_enabled, #assert_exists, #attribute_value, #before_text, #click, #click!, #create_event, #dispatch_event, #document, #enabled?, #exists?, #fire_event, #flash, #focus, inherited, #inspect, #locate, #method_missing, #name, #ole_object, #ole_object=, #parent, #text, #to_s, #type_keys, #typingspeed, #visible?
Methods included from Container
#__ole_inner_elements, #input_element_locator, #locator_for, #log, #set_container, #show_all_objects, #tagged_element_locator, #wait
Constructor Details
#initialize(container, how, what) ⇒ HTMLElement
Returns a new instance of HTMLElement.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/watir/html_element.rb', line 9 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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Watir::Element