Re: WWW::Mechanize cannot find form.
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
HEH; did I mention spelling is difficult while taking antihistamines?
I don't know what I'm doing differently, but the form is starting to
work. Now, however, I am running into an older problem I was having
before.
On that form, there are checkboxes and two drop-down box fields. It is
my understanding that I need to use $mech->tick(); and $mech->select();
to check those boxes, and select options in the drop-down box. But I
am using $mech->submit_form(); to fill out this form. How do I use
$mech->tick(); and $mech->select(); in concert with
$mech->submit_form();? Or, am I going to simply specify the names of
those checkboxes and drop-down boxes as fields? For example:
$mech->submit_form(
form_number => 1,
fields => {
somecheckbox => $var1,
dropdown2 => $var2,
}
);
Will that work?
Thanks!
Dairenn