Module: PageObject::Platforms::SeleniumWebDriver::Table
- Defined in:
- lib/page-object/platforms/selenium_webdriver/table.rb
Instance Method Summary collapse
-
#[](idx) ⇒ PageObject::Elements::TableRow
Return the PageObject::Elements::TableRow for the index provided.
-
#exists? ⇒ Boolean
override PageObject::Platforms::SeleniumElement because exists? is not available on a table element in Selenium.
-
#rows ⇒ Object
Returns the number of rows in the table.
Instance Method Details
#[](idx) ⇒ PageObject::Elements::TableRow
Return the PageObject::Elements::TableRow for the index provided. Index is zero based.
12 13 14 15 |
# File 'lib/page-object/platforms/selenium_webdriver/table.rb', line 12 def [](idx) eles = table_rows Object::PageObject::Elements::TableRow.new(eles[idx], :platform => :selenium_webdriver) end |
#exists? ⇒ Boolean
override PageObject::Platforms::SeleniumElement because exists? is not available on a table element in Selenium.
28 29 30 |
# File 'lib/page-object/platforms/selenium_webdriver/table.rb', line 28 def exists? raise "exists? not available on table element" end |
#rows ⇒ Object
Returns the number of rows in the table.
20 21 22 |
# File 'lib/page-object/platforms/selenium_webdriver/table.rb', line 20 def rows table_rows.size end |