Module: PageObject::Platforms::SeleniumWebDriver::OrderedList
- Defined in:
- lib/page-object/platforms/selenium_webdriver/ordered_list.rb
Instance Method Summary collapse
-
#[](idx) ⇒ PageObject::Elements::ListItem
Return the PageObject::Elements::ListItem for the index provided.
-
#items ⇒ Object
Return the number of items contained in the ordered list.
Instance Method Details
#[](idx) ⇒ PageObject::Elements::ListItem
Return the PageObject::Elements::ListItem for the index provided. Index is zero based.
12 13 14 |
# File 'lib/page-object/platforms/selenium_webdriver/ordered_list.rb', line 12 def [](idx) children[idx] end |
#items ⇒ Object
Return the number of items contained in the ordered list
19 20 21 |
# File 'lib/page-object/platforms/selenium_webdriver/ordered_list.rb', line 19 def items children.size end |