rashichauhan has asked for the wisdom of the Perl Monks concerning the following question:
In this code i have 2 select one species at a single time.Somehow the 'species' field isn't found and an error is issued instead.I am using www:mechanize:firefox module which understand the javascript .then why the error is coming "input species not found:.plz help me.use strict; use Data::Dumper; use Carp; use WWW::Mechanize; use WWW::Mechanize:Firefox; my $address = 'http://genie.dartmouth.edu/scope'; my $file = "ROX1.fasta"; my $email = 'myemail@gmail.com'; my $id = "ROX1 - Scope"; my $species = "S. cerevisiae"; my $mech = WWW::Mechanize->new(); $mech->get($address); $mech->select( 'species', $species); # this doesn't work. $mech->set_fields( #'species' => $species, # this also won't work # But the rest of these fields are recognized 'groupFile' => $file, 'emailAddress' => $email, 'emailSubject' => $id ); $mech->submit; my $result = $mech->content(); print "$result\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize :firefox 'select' method
by hdb (Monsignor) on Sep 12, 2013 at 07:59 UTC | |
|
Re: WWW::Mechanize :firefox 'select' method
by Corion (Patriarch) on Sep 12, 2013 at 07:12 UTC | |
by rashichauhan (Novice) on Sep 12, 2013 at 07:36 UTC | |
by ww (Archbishop) on Sep 12, 2013 at 13:20 UTC | |
by rashichauhan (Novice) on Sep 14, 2013 at 05:03 UTC | |
by rashichauhan (Novice) on Sep 14, 2013 at 07:07 UTC |