class FireWatir::TableCell

Description: Class for Table Cell.

Attributes

element_name[RW]

Public Class Methods

new(container, how, what) click to toggle source

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

Public Instance Methods

colspan() click to toggle source

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
locate() click to toggle source

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