T has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use WWW::Mechanize; my $link = "https://localhost/query.cgi?GoAheadAndLogIn=1"; my $login = "x\@gx.com"; my $pass = "xx"; my $mech = WWW::Mechanize->new(); $mech->agent_alias( 'Windows IE 6' ); $mech->get( $link ); my %login = ( "Bugzilla_login"=> $login, "Bugzilla_password"=> $pass); $mech->set_fields(%login); $mech->click( 'GoAheadAndLogIn' );
And the problem is that www::mechanize cannot found form called Bugzilla_password, but Bugzilla_login finds with no problem, can you suggest what might be wrong ?# ./bug.pl No such field 'Bugzilla_password' at /usr/lib/perl5/site_perl/5.8.8/WW +W/Mechanize.pm line 1265
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Login to new bugzilla
by Fletch (Bishop) on Apr 03, 2007 at 21:37 UTC | |
by T (Initiate) on Apr 04, 2007 at 07:15 UTC | |
| |
|
Re: Login to new bugzilla
by roboticus (Chancellor) on Apr 03, 2007 at 21:20 UTC |