Lawliet has asked for the wisdom of the Perl Monks concerning the following question:
Now, what that returns is not that helpful:@fields = $mech->find_all_inputs();
So now I know if the field is either a textbox, some sort of list, or a submit button. But the site has both dropdown fields and radio button fields. Anyway to distinguish between them? Is there a better way to gather the field types? Oh, and is there a way to select a dropdown option by its number on the list, rather than what it says?HTML::Form::TextInput=HASH(0x87b6ba8) HTML::Form::ListInput=HASH(0x87bae78) HTML::Form::SubmitInput=HASH(0x87bb460) HTML::Form::TextInput=HASH(0x87bf770) HTML::Form::ListInput=HASH(0x87bbd48) HTML::Form::ListInput=HASH(0x87bf740) HTML::Form::SubmitInput=HASH(0x87bf8a8) HTML::Form::TextInput=HASH(0x87c049c) HTML::Form::ListInput=HASH(0x87c0388) HTML::Form::SubmitInput=HASH(0x87c03c4) HTML::Form::TextInput=HASH(0x87ce480) HTML::Form::ListInput=HASH(0x87ce1a4) HTML::Form::SubmitInput=HASH(0x87ce2f4)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize form field types
by Gangabass (Vicar) on Jun 30, 2008 at 04:13 UTC | |
by Lawliet (Curate) on Jun 30, 2008 at 04:31 UTC | |
by Gangabass (Vicar) on Jun 30, 2008 at 08:57 UTC | |
by Lawliet (Curate) on Jun 30, 2008 at 22:26 UTC | |
by Anonymous Monk on Jun 30, 2008 at 06:31 UTC | |
by Anonymous Monk on Sep 01, 2009 at 15:23 UTC | |
|
Re: WWW::Mechanize form field types
by codeacrobat (Chaplain) on Jun 30, 2008 at 21:07 UTC | |
by Lawliet (Curate) on Jun 30, 2008 at 22:29 UTC |