Module: PageObject::Platforms::SeleniumWebDriver::TableRow

Defined in:
lib/page-object/platforms/selenium_webdriver/table_row.rb

Instance Method Summary collapse

Instance Method Details

#[](idx) ⇒ Object

Return the PageObject::Elements::TableCell for the index provided. Index is zero based.



11
12
13
14
# File 'lib/page-object/platforms/selenium_webdriver/table_row.rb', line 11

def [](idx)
  els = table_cells
  Object::PageObject::Elements::TableCell.new(els[idx], :platform => :selenium_webdriver)
end

#columnsObject

Returns the number of columns in the table.



19
20
21
# File 'lib/page-object/platforms/selenium_webdriver/table_row.rb', line 19

def columns
  table_cells.size
end