Module: Watir::CellContainer
- Included in:
- TableRow
- Defined in:
- lib/watir-webdriver/cell_container.rb
Instance Method Summary collapse
-
#cell(*args) ⇒ Cell
Returns table cell.
-
#cells(*args) ⇒ Cell
Returns table cells collection.
Instance Method Details
#cell(*args) ⇒ Cell
Returns table cell.
10 11 12 |
# File 'lib/watir-webdriver/cell_container.rb', line 10 def cell(*args) Cell.new(self, extract_selector(args).merge(tag_name: /^(th|td)$/)) end |
#cells(*args) ⇒ Cell
Returns table cells collection.
20 21 22 |
# File 'lib/watir-webdriver/cell_container.rb', line 20 def cells(*args) CellCollection.new(self, extract_selector(args).merge(tag_name: /^(th|td)$/)) end |