in reply to Select a Radio button using WWW::Mechanize module
For radio buttons, you want to set the value of the element. Untested code follows, as I haven't updated WWW::Mechanize::Shell to read in HTML from non-http- sources.
$agent->current_form->value("CreditType", "PAYMENT");
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^2: Select a Radio button using WWW::Mechanize module
by Anonymous Monk on Jul 06, 2006 at 08:09 UTC |