Module: Watir::TableCellsContainer
- Includes:
- TableElementsContainer
- Included in:
- Table, TableRow, TableSection
- Defined in:
- lib/watir-classic/table.rb
Instance Method Summary collapse
Instance Method Details
#cell(how = {}, what = nil) ⇒ Object
42 43 44 45 46 |
# File 'lib/watir-classic/table.rb', line 42 def cell(how={}, what=nil) specifiers = format_specifiers([:th, :td], how, what) index = specifiers.delete(:index) || 0 cells(specifiers)[index] end |
#cells(how = {}, what = nil) ⇒ Object
37 38 39 40 |
# File 'lib/watir-classic/table.rb', line 37 def cells(how={}, what=nil) assert_exists table_elements(TableCellCollection, [:th, :td], how, what, @o.cells) end |