Sha256: bfe3cc3c2fb008a527ebfcdf42f83939bafe15fbe56f1d435004089ce3746f17
Contents?: true
Size: 657 Bytes
Versions: 4
Compression:
Stored size: 657 Bytes
Contents
module PageObject module Platforms module WatirUnorderedList # # 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 => :watir) end # # Return the number of items contained in the unordered list # def items list_items.size end private def list_items element.wd.find_elements(:xpath, child_xpath) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems