Sha256: b7da9277b257849feaf29563f3f8c6c51763badb6e8ad09afc981e48486d1fc3
Contents?: true
Size: 753 Bytes
Versions: 6
Compression:
Stored size: 753 Bytes
Contents
module Watir class TableCell < HTMLElement # @private attr_writer :locator_class alias_method :colspan, :col_span alias_method :rowspan, :row_span def locator_class @locator_class || super end end # TableCell class TableCellCollection < ElementCollection attr_writer :locator_class def locator_class @locator_class || super end def elements # we do this craziness since the xpath used will find direct child rows # before any rows inside thead/tbody/tfoot... elements = super if locator_class == ChildCellLocator elements = elements.sort_by { |row| row.attribute(:cellIndex).to_i } end elements end end # TableCellCollection end # Watir
Version data entries
6 entries across 6 versions & 1 rubygems