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