Sha256: f2c0de02624bddb1d998eb0c461cf469b694adda8bdf73a958d6157f847c9d86
Contents?: true
Size: 774 Bytes
Versions: 3
Compression:
Stored size: 774 Bytes
Contents
module PageObject module Platforms module Selenium module SelectList # # 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 << Object::PageObject::Elements::Option.new(opt, :platform => :selenium) end elements end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems