From: Paul Lutus Date: 2006-11-25T04:47:29+09:00 Subject: Re: mechanize question Peter Szinek wrote: > Peter Szinek wrote: >> Hello, >> >> I am using mechanize 0.6.3. On Aaron's blog I have found this example: >> >> form.selectlist.options[2].select >> >> however, for me, 'puts form.methods.sort' revealed that form does not >> have a method 'selectlist'. What's up? I am doing something wrong? > > Meanwhile, after browsing the RDoc of WWW::Mechanize::GlobalForm I have > found that indeed, Form does not have a selectlist method. > > OK but then How I am supposed to get the selectlist of a form? > > the $1.000.000 question: In the same RDoc I read this: > > 'Class Form does not work in the case there is some invalid (unbalanced) > html involved...' > > Well, on my page, the
tag is not even closed. Can this be fixed > somehow? You mean, like, closing the ...
tag pair? Well, yes, closing it is always an option. What is the issue with editing the page and making sure it is valid HTML? -- Paul Lutus http://www.arachnoid.com