module PageObject module Platforms module SeleniumOrderedList # # Return the PageObject::Elements::ListItem for the index provided. Index # is zero based. # # @return [PageObject::Elements::ListItem] # def [](idx) eles = list_items PageObject::Elements::ListItem.new(eles[idx], :platform => :selenium) end # # Return the number of items contained in the ordered list # def items list_items.size end private def list_items element.find_elements(:xpath, child_xpath) end end end end