and my code is this:<table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <table border="0" cellspacing="10" cellpadding="0"> <form method="post" target="_top" action="../jsp/index.jsp +" name="TheForm" onSubmit="return sendForm();"> <input type="hidden" name="password" value="" /> <input type="hidden" name="rememberid" value="" /> <input type="hidden" name="pid" value="0"/> <input type="hidden" name="challenge" value="" /> <tr> <td><font face="Arial" size="2" color=#ffffff><b>  +;Nome utente</b></font></td> <td><input style="width:120px;" type="text" name="us +erid" size="15" maxlength="25" tabindex="1" value=""/></td> </tr> </form> <form method="post" target="_top" action="../jsp/index.jsp +" name="loginForm" onSubmit="return sendForm();"> <input type="hidden" name="userid" value=""/> <input type="hidden" name="rememberid" value=""/> <input type="hidden" name="pid" value="0"/> <input type="hidden" name="bla" value=""/> <tr> <td><font face="Arial" size="2" color=#ffffff><b>  +;Password</b></font></td> <td><input style="width:120px;" type="password" name=" +password" size="15" tabindex="2" maxlength="25" value=""/></td> </tr> </form> <tr> <td colspan="2" align="right"> <a href="javascript:clickLogin()" onMouseOver="ret +urn statusMsg('Login');" onMouseOut="return statusMsg();"><img src=". +./images/it/button_login.gif" border="0" alt="Login" tabindex="3"></ +a></td>
i'have tried all combination of submit_form (with fields) & something similar, but i don't think these methods are suitable for pressing a link-image-button.. Is this because www::mechanize didn't support javascript? :| Tanx in advice so much!$mech->form_number(1); $mech->set_fields ( 'userid' => $user) ; $mech->form_number(2); $mech->set_fields('password' => $password); $mech->form_number(1); $mech->submit_form(); #dont' work $mech->click(); #don't work $mech->follow_link( text_regex => qr/Login/i ); #don't work
In reply to WWW::Mechanize login by LordScinawa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |