Sha256: 4a5193182207f91875be760c7b67a034dd1fc5a7e45de6a335d94a1b38eb7732
Contents?: true
Size: 828 Bytes
Versions: 3
Compression:
Stored size: 828 Bytes
Contents
module PageObject module Platforms module Watir module SelectList # # 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 end
Version data entries
3 entries across 3 versions & 1 rubygems