in reply to Re: Re: Getting result page using WWW::Mechanize
in thread Getting result page using WWW::Mechanize
If you have to navigate a page containing frames, you have to navigate first to the frame page, and then use
$agent->follow();to get to the page linked from that frame.
To set the value of a text field, use $agent->field("fieldname",$value);. To submit a form with a single button, you can either use $agent->submit() or $agent->click("button_name")
BTW, take a look at the Writeup Formatting Tips to see how to format code and your text.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Getting result page using WWW::Mechanize
by Anonymous Monk on Jul 04, 2003 at 11:03 UTC | |
by Corion (Patriarch) on Jul 04, 2003 at 11:11 UTC | |
by Anonymous Monk on Jul 04, 2003 at 18:29 UTC | |
by Corion (Patriarch) on Jul 05, 2003 at 08:35 UTC | |
by Anonymous Monk on Jul 05, 2003 at 18:28 UTC | |
by Anonymous Monk on Jul 07, 2003 at 12:15 UTC | |
|