Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here is the form <form method=get name=form1 action="http://address . . . <input type="image" alt=" Go " src="http://address/image.gif" border=0> <a href="http://address"> <img src="http://whatever/f-clear0.gif" border=0 alt="Clear"></a> </form> Here is the code: use WWW::Mechanize; my $agent = WWW::Mechanize->new(); $agent->get('http://address'); $agent->form(1); $agent->field(qw(request test)); #tried this but it didn't work #$agent->find_image(alt => " Go "); #$agent->click(); $agent->submit("Go"); print $agent->{content};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize and unnamed images
by jbrugger (Parson) on Mar 02, 2006 at 05:24 UTC | |
|
Re: WWW::Mechanize and unnamed images
by monarch (Priest) on Mar 02, 2006 at 05:18 UTC | |
by davidrw (Prior) on Mar 02, 2006 at 14:36 UTC |