Sha256: 7c2cabd9f0a328aad4eb3a07f058cc0a84f925d6d691c54d89b966487afae9c6

Contents?: true

Size: 390 Bytes

Versions: 46

Compression:

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

46 entries across 46 versions & 2 rubygems

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