module PageObject::Platforms::WatirWebDriver::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/watir_webdriver/ordered_list.rb, line 12 def [](idx) Object::PageObject::Elements::ListItem.new(children[idx], :platform => :watir_webdriver) end
items()
click to toggle source
Return the number of items contained in the ordered list
# File lib/page-object/platforms/watir_webdriver/ordered_list.rb, line 19 def items children.size end
Private Instance Methods
children()
click to toggle source
# File lib/page-object/platforms/watir_webdriver/ordered_list.rb, line 25 def children list_items.find_all { |item| item.parent == element } end
list_items()
click to toggle source
# File lib/page-object/platforms/watir_webdriver/ordered_list.rb, line 29 def list_items element.ols(:xpath => child_xpath) end