Module: PageObject::Platforms::SeleniumWebDriver::OrderedList

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

Instance Method Summary collapse

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

#itemsObject

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