Mechanize | trouble with select box (drop down box)

For the life of me, I can’t seem to access the form ‘_ddlFilterFormat’
in any other way than the below awkward code:

initPage.forms.name(“form1”).fields.each{|f|
if(f.name == “_ddlFilterFormat”)
f.options.each{|o|

            }
    end

}

initPage.forms.name(“form1”).fields("_ddlFilterFormat").options.each{|f|
puts f.text
#…yields nothing! Never loops!
}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs