Sha256: 0b1bd0255e60f1c7a02ee36e45fcfe0dfe6bec0f2949d60714776e7174e4123b

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module Watir
  #
  # Custom class representing table cell (th or td).
  #

  class Cell < TableCell
  end # Cell

  class CellCollection < TableCellCollection
    def elements
      # 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(:cellIndex).to_i }
    end
  end
end # Watir

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-7.3.0 lib/watir/elements/cell.rb
watir-7.2.2 lib/watir/elements/cell.rb
watir-7.2.1 lib/watir/elements/cell.rb
watir-7.2.0 lib/watir/elements/cell.rb