Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

WWW::Mechanize::Shell and forms with <select>

by rkg (Hermit)
on Sep 17, 2003 at 21:34 UTC ( [id://292263]=perlquestion: print w/replies, xml ) Need Help??

rkg has asked for the wisdom of the Perl Monks concerning the following question:

Wise Monks --

I am working with WWW::Mechanize::Shell, and not sure how to set a <SELECT> field.

The form looks like this

<select name="language" multiple size="4"> <option value="*" selected> All Languages </option> <option value="--- +---0">------</option> <option value="da"> Danish </option> <opt +ion value="nl"> Dutch </option> <option value="en"> English </opti +on> ...snip... </select>
When I use
fillout
interactively or when I declare
value language en
::FormFiller complains
Illegal value 'en' at C:/APPS/Perl/site/lib/WWW/Mechanize/Shell.pm lin +e 471

I think I am not grokking how to fill out a SELECT pull down menu via WWW:M:S. Advice, wise monks?

Thanks

rkg

Replies are listed 'Best First'.
Re: WWW::Mechanize::Shell and forms with <select>
by simonm (Vicar) on Sep 17, 2003 at 22:25 UTC
    One tip: it looks like the error is originally coming from HTML::Form::ListInput (part of HTML::Form).

    You may find that it's expecting you to specify the display value rather than the hidden value; maybe value language English or value language " English " would work?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://292263]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found