Subject: | forms with multiple submit buttons |
In order to click on a button in a form that has more than one button named submit I had to resort to:
my $form = $agent->current_form;
my $update = $form->find_input('submit','submit',1);
my $request = $update->click($form);
$agent->{req} = $request;
-----------^^^
$agent->_do_request;
I feel particular guilty about stuffing a request object into $agent->{req}
I would be nice if you modifed the req method to allow me to set the field, as well as just read it.
Thanks.
Best wishes,
Henry Laxen