Sha256: 9e611af2355230a5e5137a722e9aa8c1ff59d651d6eb63b60e894bf87a1ff290
Contents?: true
Size: 713 Bytes
Versions: 16
Compression:
Stored size: 713 Bytes
Contents
module PageObject module Platforms module WatirWebDriver module OrderedList # # 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 => :watir_webdriver) end # # Return the number of items contained in the ordered list # def items list_items.size end private def list_items element.wd.find_elements(:xpath, child_xpath) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems