Sha256: a673ebf5a74904e645e63559f9d60ee899e5867fb52dd8dc911fba6ecc6c43b6
Contents?: true
Size: 824 Bytes
Versions: 7
Compression:
Stored size: 824 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
7 entries across 7 versions & 2 rubygems