lib/watir/elements/table.rb in watir-6.13.0 vs lib/watir/elements/table.rb in watir-6.14.0

- old
+ new

@@ -25,11 +25,11 @@ # @return [Array<Hash>] # def hashes all_rows = rows.locate - header_row = all_rows.first || raise(Exception::Error, "no rows in table") + header_row = all_rows.first || raise(Exception::Error, 'no rows in table') all_rows.entries[1..-1].map do |row| cell_size_check(header_row, row) Hash[headers(header_row).map(&:text).zip(row.cells.map(&:text))] end @@ -69,8 +69,7 @@ index = cell_row.selector[:index] row_id = index ? "row at index #{index - 1}" : 'designated row' raise Exception::Error, "#{row_id} has #{row_size} cells, while header row has #{header_size}" end - end # Table end # Watir