Module: Watir::TableContainer
- Included in:
- Table, TableSection
- Defined in:
- lib/watir-classic/table.rb
Instance Method Summary collapse
-
#[](index) ⇒ Object
Returns a row in the table * index - the index of the row.
- #strings ⇒ Object
Instance Method Details
#[](index) ⇒ Object
Returns a row in the table
* index - the index of the row
6 7 8 9 |
# File 'lib/watir-classic/table.rb', line 6 def [](index) assert_exists TableRow.new(self, :ole_object => @o.rows.item(index)) end |
#strings ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/watir-classic/table.rb', line 11 def strings assert_exists rows_memo = [] @o.rows.each do |row| cells_memo = [] row.cells.each do |cell| cells_memo << TableCell.new(self, :ole_object => cell).text.gsub("\r\n","") end rows_memo << cells_memo end rows_memo end |