in reply to Seeking assistance with WWW::Mechanize Form Submission
First I recommend you to start by checking if your form works in the browser with JavaScript disabled: remove all cookies for this site, disable JavaScript and try to submit your form.
If the problem is not in JavaScript you need to try to add button => ... to your code. Many sites expects x and y coordinates of the submit button you click:
to your code. Many sites expects x and y coordinates of the submit button you click:$mech->submit_form( with_fields => { "login_username" =>'username', "login_password" => 'password', "prefLanguage" => '00000000', }, button => "your_submit_button_name", );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Seeking assistance with WWW::Mechanize Form Submission
by tspang (Initiate) on Jan 15, 2013 at 16:30 UTC | |
by Gangabass (Vicar) on Jan 16, 2013 at 06:55 UTC | |
by tspang (Initiate) on Jan 16, 2013 at 14:39 UTC | |
by Gangabass (Vicar) on Jan 17, 2013 at 13:27 UTC | |
by tspang (Initiate) on Jan 17, 2013 at 16:37 UTC | |
| |
by Anonymous Monk on Jan 16, 2013 at 15:41 UTC |