Sha256: 0ac5a12dc7453301540ba5a6b5709ab6d23993231ea250b1379f35ca9a50a7c2
Contents?: true
Size: 388 Bytes
Versions: 20
Compression:
Stored size: 388 Bytes
Contents
module Watir # # Custom class representing table row (tr). # class Row < TableRow end # Row class RowCollection < TableRowCollection def to_a # we do this craziness since the xpath used will find direct child rows # before any rows inside thead/tbody/tfoot... @to_a ||= super.sort_by { |e| e.attribute_value(:rowIndex).to_i } end end end # Watir
Version data entries
20 entries across 20 versions & 1 rubygems