Class: Watir::Label
- Inherits:
-
NonControlElement
- Object
- Element
- NonControlElement
- Watir::Label
- Defined in:
- lib/watir/non_control_elements.rb
Overview
Accesses Label element on the html page - msdn.microsoft.com/workshop/author/dhtml/reference/objects/label.asp?frame=true
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
-
#to_s ⇒ Object
returns the properties of the object in a string raises an ObjectNotFound exception if the object cannot be found.
Methods inherited from NonControlElement
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, #initialize, #inspect, #locate, #method_missing, #name, #ole_object, #ole_object=, #parent, #text, #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
This class inherits a constructor from Watir::NonControlElement
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Watir::Element
Instance Method Details
#to_s ⇒ Object
returns the properties of the object in a string raises an ObjectNotFound exception if the object cannot be found
50 51 52 53 54 55 |
# File 'lib/watir/non_control_elements.rb', line 50 def to_s assert_exists r = string_creator r += label_string_creator return r.join("\n") end |