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)
In reply to WWW::Mechanize form field types by Lawliet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |