[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Mechanize | trouble with select box (drop down box

subsume@gmail.com

9/15/2007 2:49:00 AM

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!
}
--
Posted via http://www.ruby-....