WWW::Mechanize Fun

| | Comments (0)
Add to delicious Digg This Add to My Yahoo! Add to Google Add to StumbleUpon

I have been writing a test suite for a website recently and came upon the following error.

Illegal value 'GBR' for field 'country_iso' at /usr/local/share/perl/5.8.4/WWW/Mechanize.pm line 1232


This seemed strange to me at first but when I thought about it I was using the following code

$mech->select("country_iso", 'GBR' );

If the value i.e. "GBR" in my case is not a valid select option then obviously WWW::Mechanize or rather HTML::Form will throw an error. It was actually HTML::Form::ListInput that the error came from but this is a package declared in the HTML/Form.pm module.

Leave a comment

About this Entry

This page contains a single entry by Harry published on April 18, 2007 10:25 AM.

SSH Connection Reset By Peer was the previous entry in this blog.

Yahoo Slurp is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01