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