What''s the best way to select a form on a page with Mechanize if the form doesn''t have the "name" attribute? I''m already familiar with the page.form(''myformname'') syntax but this doesn''t? work with forms that have no names. -- Thank you, Shane Witbeck Digital Sanctum, inc. ----------------------------------------------------- skype: digitalsanctum blog: http://www.digitalsanctum.com
On 9/24/07, Shane Witbeck <shane at digitalsanctum.com> wrote:> > What''s the best way to select a form on a page with Mechanize if the > form doesn''t have the "name" attribute? I''m already familiar with the > page.form(''myformname'') syntax but this doesn''t? work with forms that > have no names.You can try selecting the form based on its location - like page.forms.firstmaybe... Try http://www.makuchaku.info/blog/mechanizing-orkut I hope it helps :) -- Maku -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070924/1f29eea2/attachment-0001.html