Sha256: a8aa78d7f2056a4fa51bd9d962273861f809e1190ae67f77c4f92397af30c008
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
module FireWatir # # Description: # Class for Table Cell. # class TableCell < Element attr_accessor :element_name # Description: # Locate the table cell element on the page. # 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 # # Description: # Initializes the instance of table cell object. # # Input: # - how - Attribute to identify the table cell element. # - what - Value of that attribute. # def initialize(container, how, what) @how = how @what = what @container = container #super nil end alias to_s text # # Description: # Gets the col span of table cell. # # Output: # Colspan of table cell. # def colspan assert_exists @o.colSpan end end # TableCell end # FireWatir
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mk_firewatir-1.6.5 | lib/firewatir/elements/table_cell.rb |
firewatir-1.6.5 | lib/firewatir/elements/table_cell.rb |