Thank you, Keszler - that .. nearly works. The multiple fields get highlighted, but then it becomes a fail with this error,
"Use of unitialized value in list assignment at C:\PERL..\IE\Input.pm line 115"
... and this is the entire script:
----------------------------
my $url = "http://www.mesonet.org/index.php/weather/daily_data_retriev +al"; my $ie =Win32::IE::Mechanize->new( visible=> 1 ); my @variables = ('TAVG','DAVG','PAVG','HMAX','HMIN','HAVG','WSPD','ATO +T'); $ie->get($url); sleep 1; $ie->form_name("request"); $ie->set_fields(beginmonth=>'05'); $ie->set_fields(beginday=>'15'); $ie->set_fields(beginyear=>'2010'); $ie->set_fields(endmonth=>'07'); $ie->set_fields(endday=>'06'); $ie->set_fields(endyear=>'2010'); $ie->select( 'parms', \@variables); $ie->set_fields(stid=> $station); $ie->click("SUBMIT"); my $html = $ie->content; print $html; $ie->close;
-----------------------
... any other glaring errors on my part, or is it IE::Mech?In reply to Re^2: multiple selections in the same field using Mechanize
by Anonymous Monk
in thread multiple selections in the same field using Mechanize
by triskele
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |