Get values from a select list using xpath
I'm trying to get the select list values using xpath because by id is giving me false in the exists function, but is not working


    puts   $browser.select_list(:xpath,"//*[@id='numType']").exists?
               
    number = $browser.select_list(:xpath,"//*[@id='numType']").options.map(&:text)
      
     number_list = Array.new
     number.each do |number_text|
          number_list << "#{number_text}"
     end

How can i do this?

Tanks
Get values from a select list using xpath
===

I'm trying to get the select list values using xpath because by id is giving me false in the exists function, but is not working


    puts   $browser.select_list(:xpath,"//*[@id='numType']").exists?
               
    number = $browser.select_list(:xpath,"//*[@id='numType']").options.map(&:text)
      
     number_list = Array.new
     number.each do |number_text|
          number_list << "#{number_text}"
     end

How can i do this?

Tanks