Module: WatirNokogiri::CellContainer
- Included in:
- TableRow
- Defined in:
- lib/watir-nokogiri/cell_container.rb
Instance Method Summary collapse
-
#cell(*args) ⇒ TableCell
Returns table cell.
-
#cells(*args) ⇒ TableCell
Returns table cells collection.
Instance Method Details
#cell(*args) ⇒ TableCell
Returns table cell.
10 11 12 13 14 15 |
# File 'lib/watir-nokogiri/cell_container.rb', line 10 def cell(*args) cell = TableCell.new(self, extract_selector(args).merge(:tag_name => /^(th|td)$/)) cell.locator_class = ChildCellLocator cell end |
#cells(*args) ⇒ TableCell
Returns table cells collection.
23 24 25 26 27 28 |
# File 'lib/watir-nokogiri/cell_container.rb', line 23 def cells(*args) cells = TableCellCollection.new(self, extract_selector(args).merge(:tag_name => /^(th|td)$/)) cells.locator_class = ChildCellLocator cells end |