Sha256: dd072967b2c8084e7edaf5cf026fe1ea967077f3b5dec199fa583bfa99410652
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-6.10.1 | lib/watir/elements/row.rb |