in reply to Re^3: WWW::Mechanize problem
in thread WWW::Mechanize problem
yes, it is the correct page i check with print $mech->content();use WWW::Mechanize; use Storable; use LWP; use warnings; my $loginpage = "http://www.homepage.org"; my $challenge = "http://www.homepage.org/test.htm"; my $username = 'username'; my $password = 'password'; my $mech = WWW::Mechanize->new(); $mech -> cookie_jar(HTTP::Cookies->new()); $mech -> get($loginpage); $mech -> form_name('loginform'); $mech -> field ('username' => $username); $mech -> field ('password' => $password); $mech -> click ('btn_submit'); #navigate to challenge page $mech->get( $challenge ); my @find_text = $mech->find_all_inputs( type => 'text' ); for $boxes (@find_text) { #if (length($boxes->value) > 100) { print $boxes->value(); # } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: WWW::Mechanize problem
by Khen1950fx (Canon) on May 06, 2012 at 16:14 UTC |