in reply to WWW::Mechanize and forms
find_all_inputs is documented to work on the current form.
It wasn't hard to find methods that set the current form: form_number, form_name and form_with_fields.
Note that form_name returns a form, while find_all_inputs needs to be called on a Mechanize object.
$mech->form_name('account'); my @c_inputs = $mech->find_all_inputs();
Untested. Just going by the docs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize and forms
by scoobyrico (Beadle) on Dec 11, 2007 at 20:00 UTC |