Description: Class for Table Cell.
Description:
Initializes the instance of table cell object.
Input:
- how - Attribute to identify the table cell element. - what - Value of that attribute.
# File lib/firewatir/elements/table_cell.rb, line 32 def initialize(container, how, what) @how = how @what = what @container = container #super nil end
Description:
Gets the col span of table cell.
Output:
Colspan of table cell.
# File lib/firewatir/elements/table_cell.rb, line 48 def colspan assert_exists @o.colSpan end
Description:
Locate the table cell element on the page.
# File lib/firewatir/elements/table_cell.rb, line 12 def locate case @how when :jssh_name @element_name = @what when :xpath @element_name = element_by_xpath(@container, @what) else @element_name = locate_tagged_element("TD", @how, @what) end @o = self end