module PageObject::Platforms::SeleniumWebDriver::OrderedList
Public Instance Methods
[](idx)
click to toggle source
Return the PageObject::Elements::ListItem
for the index provided. Index is zero based.
@return [PageObject::Elements::ListItem]
# File lib/page-object/platforms/selenium_webdriver/ordered_list.rb, line 12 def [](idx) children[idx] end
items()
click to toggle source
Return the number of items contained in the ordered list
# File lib/page-object/platforms/selenium_webdriver/ordered_list.rb, line 19 def items children.size end
Private Instance Methods
children()
click to toggle source
# File lib/page-object/platforms/selenium_webdriver/ordered_list.rb, line 25 def children items = list_items.map do |item| ::PageObject::Elements::ListItem.new(item, :platform => :selenium_webdriver) end items.find_all { |item| item.parent.element == element } end
list_items()
click to toggle source
# File lib/page-object/platforms/selenium_webdriver/ordered_list.rb, line 32 def list_items element.find_elements(:xpath, child_xpath) end