Sha256: 7ff9080a2c856bb23f1414496244c1daf265739d511cac7f8262c4f5f9818b0e
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
module PageObject module Platforms module WatirOrderedList # # 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 ordered 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