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?