Module: Watir::CellContainer
- Included in:
- TableRow
- Defined in:
- lib/watir-webdriver/cell_container.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) cell(*args)
4 5 6 7 8 9 |
# File 'lib/watir-webdriver/cell_container.rb', line 4 def cell(*args) cell = TableCell.new(self, extract_selector(args).merge(:tag_name => /^(th|td)$/)) cell.locator_class = ChildCellLocator cell end |
- (Object) cells(*args)
11 12 13 14 15 16 |
# File 'lib/watir-webdriver/cell_container.rb', line 11 def cells(*args) cells = TableCellCollection.new(self, extract_selector(args).merge(:tag_name => /^(th|td)$/)) cells.locator_class = ChildCellLocator cells end |