Sha256: 314542ac3145515f9bdc0e543284d89c3c66236f29fd75325d04beeb36493a99

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
watir-6.10.1 lib/watir/elements/cell.rb