then on my linux box im getting something like click_button: No form has been selected at ./mech.pl line 9 in the code of the webpage i have it is showing:#!/usr/bin/perl # use strict; use WWW::Mechanize; my $target = "http://www.somewebpage.com/subscription/showsubscribe"; my $mech = WWW::Mechanize->new(agent=>$useragent); $mech->get($target); my $response = $mech->click_button(value=>"subscriptionTop", value=>"loadingSubscript +ion();"); $mech->submit(); die "Error at '$target'\n", $response->status_line, "\n Aborting" unless $response->is_success; $response = $mech->response; for my $key ($response->header_field_names()) { print "response[$key] = ", $response->header($key), "\n"; } #print $mech->content;
any tip of where it is my fault? im reading in the cpan about www::mechanize but i cant get how to click on this link thanks for your help!<input type="image" src="/image/suscribe-btn.png;jsessionid=uK6psR994V +LpkeMzmEEVte9n" onclick="loadingSubscription();" class="img_content_i +mg_home" id="subscriptionTop">
In reply to Click on "any" href by annonimous
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |