lib/watir-webdriver/row_container.rb in watir-webdriver-0.6.1 vs lib/watir-webdriver/row_container.rb in watir-webdriver-0.6.2

- old
+ new

@@ -1,22 +1,30 @@ module Watir module RowContainer + # + # Returns table row. + # + def row(*args) row = tr(*args) row.locator_class = ChildRowLocator row end + # + # Returns table rows collection. + # + def rows(*args) rows = trs(*args) rows.locator_class = ChildRowLocator rows end - + # # The table as a 2D Array of strings with the text of each cell. # # @return [Array<Array<String>>] # @@ -28,7 +36,7 @@ res << row.cells.map { |cell| cell.text } end end alias_method :to_a, :strings - end -end + end # RowContainer +end # Watir