Class: Watir::TableCell
- Includes:
- Container, Exception
- Defined in:
- lib/watir/table.rb
Overview
this class is a table cell - when called via the Table object
Constant Summary collapse
- TAG =
"TD"
Constants inherited from Element
Instance Attribute Summary
Attributes included from Container
#activeObjectHighLightColor, #page_container, #type_keys, #typingspeed
Attributes inherited from Element
Instance Method Summary collapse
- #colspan ⇒ Object
- #document ⇒ Object
-
#initialize(container, how, what) ⇒ TableCell
constructor
Returns an initialized instance of a table cell * container - an IE object * how - symbol - how we access the cell * what - what we use to access the cell - id, name index etc.
Methods included from Container
#input_element_locator, #locator_for, #log, #set_container, #show_all_objects, #tagged_element_locator, #wait
Methods inherited from Element
#<=>, #activeObjectHighLightColor, #after_text, #assert_enabled, #assert_exists, #attribute_value, #before_text, #click, #click!, #create_event, #dispatch_event, #enabled?, #exists?, #fire_event, #flash, #focus, inherited, #inspect, #locate, #method_missing, #name, #ole_object, #ole_object=, #parent, #text, #type_keys, #typingspeed, #visible?
Constructor Details
#initialize(container, how, what) ⇒ TableCell
Returns an initialized instance of a table cell
- container - an IE object
- how - symbol - how we access the cell
- what - what we use to access the cell - id, name index etc
359 360 361 362 363 364 |
# File 'lib/watir/table.rb', line 359 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
#colspan ⇒ Object
379 380 381 382 |
# File 'lib/watir/table.rb', line 379 def colspan locate @o.colSpan end |
#document ⇒ Object
372 373 374 375 |
# File 'lib/watir/table.rb', line 372 def document locate return @o end |