in reply to Re: Click button not working in WWW::Mechanize
in thread Click button not working in WWW::Mechanize

Strange wfsp, I tried to comment out "$mech->submit()" but it still does not give the result as you get (i.e. same old output). Did you use the exact code I have in my OP?

BTW I am running under Linux, could it bet the case?
Linux myhost.com.sg 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 + i686 i686 i386 GNU/Linux

Regards,
Edward

Replies are listed 'Best First'.
Re^3: Click button not working in WWW::Mechanize
by wfsp (Abbot) on Sep 21, 2006 at 12:11 UTC
    Sorry, forgot to mention that I also removed:
    name => "action",
    because all the buttons had that name.

    #!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); my $tf_add = "http://rulai.cshl.edu/cgi-bin/SCPD/getgene2?ARG1"; $mech->get($tf_add); $mech->set_fields( 'start' => -450, 'end' => 50 ); # this part works # but not this: $mech->click_button( value => "Retrieve sequence" ); #$mech->submit(); my $result = $mech->content(); print "$result\n";