Class: Watir::InputElement
- Defined in:
- lib/watir/input_elements.rb
Overview
:nodoc:all
Direct Known Subclasses
Constant Summary
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) ⇒ InputElement
constructor
A new instance of InputElement.
- #locate ⇒ Object
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, #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) ⇒ InputElement
Returns a new instance of InputElement.
8 9 10 11 12 13 |
# File 'lib/watir/input_elements.rb', line 8 def initialize(container, how, what) set_container container @how = how @what = what super(nil) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Watir::Element
Instance Method Details
#locate ⇒ Object
4 5 6 7 |
# File 'lib/watir/input_elements.rb', line 4 def locate locator_or_element = @container.input_element_locator(@how, @what, self.class::INPUT_TYPES, self.class) @o = locator_or_element.is_a?(WIN32OLE) ? locator_or_element : locator_or_element.locate end |