Sha256: 66c70f6b9539cd4e535bbc75c7182d93b41b2db61cc3fe9fcb5ee4cefb966e2c

Contents?: true

Size: 389 Bytes

Versions: 20

Compression:

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

20 entries across 20 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/elements/cell.rb
watir-7.0.0 lib/watir/elements/cell.rb
watir-7.0.0.beta5 lib/watir/elements/cell.rb
watir-7.0.0.beta4 lib/watir/elements/cell.rb
watir-7.0.0.beta3 lib/watir/elements/cell.rb
watir-7.0.0.beta2 lib/watir/elements/cell.rb
watir-7.0.0.beta1 lib/watir/elements/cell.rb
watir-6.19.1 lib/watir/elements/cell.rb
watir-6.19.0 lib/watir/elements/cell.rb
watir-6.18.0 lib/watir/elements/cell.rb
watir-6.17.0 lib/watir/elements/cell.rb
watir-6.16.5 lib/watir/elements/cell.rb
watir-6.16.4 lib/watir/elements/cell.rb
watir-6.16.3 lib/watir/elements/cell.rb
watir-6.16.2 lib/watir/elements/cell.rb
watir-6.16.1 lib/watir/elements/cell.rb
watir-6.16.0 lib/watir/elements/cell.rb
watir-6.15.1 lib/watir/elements/cell.rb
watir-6.15.0 lib/watir/elements/cell.rb
watir-6.14.0 lib/watir/elements/cell.rb