in reply to Mechanizing around Javascript
There is no form #2 on your login page. I recommend you to rewrite your code like this:
Also there is no need to use follow_link with absolute URL just use get$mech->get($url); my $usr = "asdf"; #marked out for post my $pw = "asdffgg"; $mech->submit_form ( with_fields => { login_name => $usr, user_password => $pw, }, );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Mechanizing around Javascript
by PerlSufi (Friar) on Apr 26, 2013 at 14:21 UTC | |
by Gangabass (Vicar) on Apr 26, 2013 at 14:56 UTC | |
by PerlSufi (Friar) on Apr 26, 2013 at 15:30 UTC | |
by Gangabass (Vicar) on Apr 27, 2013 at 02:13 UTC |
In Section
Seekers of Perl Wisdom