Module: Watir::CellContainer

Included in:
TableRow
Defined in:
lib/watir-webdriver/cell_container.rb

Instance Method Summary collapse

Instance Method Details

#cell(*args) ⇒ Cell

Returns table cell.

Returns:



10
11
12
# File 'lib/watir-webdriver/cell_container.rb', line 10

def cell(*args)
  Cell.new(self, extract_selector(args).merge(tag_name: /^(th|td)$/))
end

#cells(*args) ⇒ Cell

Returns table cells collection.

Returns:



20
21
22
# File 'lib/watir-webdriver/cell_container.rb', line 20

def cells(*args)
  CellCollection.new(self, extract_selector(args).merge(tag_name: /^(th|td)$/))
end