lib/watir/elements/table.rb in watir-6.14.0 vs lib/watir/elements/table.rb in watir-6.15.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(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 @@ -67,9 +67,9 @@ row_size = cell_row.cells.size return if header_size == row_size 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}" + raise Error, "#{row_id} has #{row_size} cells, while header row has #{header_size}" end end # Table end # Watir