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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Mechanize | trouble with select box (drop down box
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password