Sha256: 1b6e23168d72c09be3331f423b3a094acefb63784057556d1d405a6d9a138110
Contents?: true
Size: 721 Bytes
Versions: 16
Compression:
Stored size: 721 Bytes
Contents
module PageObject module Platforms module SeleniumWebDriver module UnorderedList # # Return the PageObject::Elements::ListItem for the index provided. Index # is zero based. # # @return [PageObject::Elements::ListItem] # def [](idx) eles = list_items Object::PageObject::Elements::ListItem.new(eles[idx], :platform => :selenium_webdriver) end # # Return the number of items contained in the unordered list # def items list_items.size end private def list_items element.find_elements(:xpath, child_xpath) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems