Radek Simcik
2010-Jan-30 02:48 UTC
[Mechanize-users] bug or desired behaviour? couldn’t identify form using string ‘post’ but ‘POST’. html contains ‘post’ though
hi the code that didn''t work although the page source code says ` <form class="login" method="post"> ` Please see more info on http://stackoverflow.com/questions/2165834/bug-or-desired-behaviour-couldnt-identify-form-using-string-post-but-post Thank you Radek `login_form = page.form_with(:method => ''post'')` and code that works `login_form = page.form_with(:method => ''POST'')` I inspected the form object via `puts page.forms.inspect` and got [#<WWW::Mechanize::Form {name nil} {method "POST"} ....] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20100130/1fc749e3/attachment.html>