Sha256: ee5aad22887e4cae71429434ee687cfc90d5add4a7e9b4e62108c5e8984272dd
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
module PageObject module Elements class UnorderedList < Element include Enumerable def initialize(element, platform) @element = element include_platform_for platform end # # iterator that yields with a PageObject::Elements::ListItem # # @return [PageObject::Elements::ListItem] # def each for index in 1..self.items do yield self[index-1] end end protected def child_xpath "./child::li" end def self.watir_finders [:class, :id, :index, :xpath] end end ::PageObject::Elements.tag_to_class[:ul] = ::PageObject::Elements::UnorderedList end end
Version data entries
4 entries across 4 versions & 1 rubygems