Sha256: d9857a159c70cf6ba4cb76a0455c2e617a5df7594c0ce54ad2b893b2196aa27f
Contents?: true
Size: 709 Bytes
Versions: 4
Compression:
Stored size: 709 Bytes
Contents
module PageObject module Elements class OrderedList < 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[:ol] = ::PageObject::Elements::OrderedList end end
Version data entries
4 entries across 4 versions & 1 rubygems