Sha256: 59d2a877bc1fa6724efe19528d95a279724adf26b4077c58bd4ceaaebdc5f3c4
Contents?: true
Size: 788 Bytes
Versions: 46
Compression:
Stored size: 788 Bytes
Contents
module PageObject module Platforms module WatirWebDriver module UnorderedList # # Return the PageObject::Elements::ListItem for the index provided. Index # is zero based. # # @return [PageObject::Elements::ListItem] # def [](idx) Object::PageObject::Elements::ListItem.new(children[idx], :platform => :watir_webdriver) end # # Return the number of items contained in the unordered list # def items children.size end private def children list_items.find_all { |item| item.parent == element } end def list_items element.uls(:xpath => child_xpath) end end end end end
Version data entries
46 entries across 46 versions & 3 rubygems