Sha256: bdfc638609d588831d75a63726938162840e514eec9501794e33f4daa494c42b
Contents?: true
Size: 831 Bytes
Versions: 5
Compression:
Stored size: 831 Bytes
Contents
module PageObject module Platforms module LdsWatirWebDriver 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 => :lds_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
5 entries across 5 versions & 1 rubygems