Sha256: d05faebb5cca72b881d00ed8b21b7e0034ee5be84312429f8bb83402000764ef
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
module PageObject module Platforms module WatirSelectList # # Return the PageObject::Elements::Option for the index provided. Index # is zero based. # # @return [PageObject::Elements::Option] # def [](idx) PageObject::Elements::Option.new(options[idx], :platform => :watir) end # # Return an array of Options contained in the select lit. # # @return [array of PageObject::Elements::Option] # def options elements = [] options = @element.wd.find_elements(:xpath, child_xpath) options.each do |opt| elements << PageObject::Elements::Option.new(opt, :platform => :watir) end elements end end end end
Version data entries
3 entries across 3 versions & 1 rubygems