Sha256: 625646a14891dfba73b7b3d17e76ce82b0a3f2497e77f1418564dcaaba3d9616

Contents?: true

Size: 389 Bytes

Versions: 19

Compression:

Stored size: 389 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

19 entries across 19 versions & 1 rubygems

Version Path
watir-6.13.0 lib/watir/elements/row.rb
watir-6.12.0 lib/watir/elements/row.rb
watir-6.11.0 lib/watir/elements/row.rb
watir-6.11.0.beta2 lib/watir/elements/row.rb
watir-6.11.0.beta1 lib/watir/elements/row.rb
watir-6.10.3 lib/watir/elements/row.rb
watir-6.10.2 lib/watir/elements/row.rb
watir-6.10.0 lib/watir/elements/row.rb
watir-6.9.1 lib/watir/elements/row.rb
watir-6.9.0 lib/watir/elements/row.rb
watir-6.8.4 lib/watir/elements/row.rb
watir-6.8.3 lib/watir/elements/row.rb
watir-6.8.2 lib/watir/elements/row.rb
watir-6.8.1 lib/watir/elements/row.rb
watir-6.8.0 lib/watir/elements/row.rb
watir-6.7.3 lib/watir/elements/row.rb
watir-6.7.2 lib/watir/elements/row.rb
watir-6.7.1 lib/watir/elements/row.rb
watir-6.7.0 lib/watir/elements/row.rb