Sha256: c02a64dde70b4819bb1d78440015875a23577d8d8dfbe4639d61be848f60fc2e

Contents?: true

Size: 379 Bytes

Versions: 20

Compression:

Stored size: 379 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...
      super.sort_by { |e| e.attribute_value(:rowIndex).to_i }
    end
  end
end # Watir

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
watir-6.6.3 lib/watir/elements/row.rb
watir-6.6.2 lib/watir/elements/row.rb
watir-6.6.1 lib/watir/elements/row.rb
watir-6.6.0 lib/watir/elements/row.rb
watir-6.5.0 lib/watir/elements/row.rb
watir-6.4.3 lib/watir/elements/row.rb
watir-6.4.2 lib/watir/elements/row.rb
watir-6.4.1 lib/watir/elements/row.rb
watir-6.4.0 lib/watir/elements/row.rb
watir-6.4.0.rc2 lib/watir/elements/row.rb
watir-6.4.0.rc1 lib/watir/elements/row.rb
watir-6.3.0 lib/watir/elements/row.rb
watir-6.2.1 lib/watir/elements/row.rb
watir-6.2.0 lib/watir/elements/row.rb
watir-6.1.0 lib/watir/elements/row.rb
watir-6.0.3 lib/watir/elements/row.rb
watir-6.0.2 lib/watir/elements/row.rb
watir-6.0.1 lib/watir/elements/row.rb
watir-6.0.0 lib/watir/elements/row.rb
watir-6.0.0.beta5 lib/watir/elements/row.rb