The buttons must be in different forms of that page, otherwise it makes no difference to the receiving CGI. So select the right form() and then click() on the button.
For interactive exploration of a website, there is also WWW::Mechanize::Shell (written by me), which allows you to play with WWW::Mechanize in a more interactive manner and afterwards dump your session as Perl code.
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
In reply to Re: using WWW::Mechanize with more than 1 submit button
by Corion
in thread using WWW::Mechanize with more than 1 submit button
by revdiablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |