larard has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use local::lib; use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new( autoclose => 0 ); $mech->get('http://www.rightmove.co.uk/'); # Filling in and submitting the first forms works: $mech->submit_form( with_fields => { searchLocation => 'N1', } ); # The second form I can't work out.... $mech->submit_form({with_fields => {'sortByPriceDescending'=>''}}); #This was the otherway I thought of doing it, #$mech->click({xpath => '//*[@id="submit"]'});
In short how do I "click" the 'Find properties" button on the second page?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using WWW::Mechanize::Firefox to navigate a site
by Corion (Patriarch) on Aug 17, 2010 at 20:00 UTC | |
by larard (Monk) on Aug 17, 2010 at 20:15 UTC | |
by Corion (Patriarch) on Aug 17, 2010 at 20:52 UTC | |
by larard (Monk) on Aug 17, 2010 at 21:16 UTC | |
by Matt™ (Acolyte) on Nov 03, 2012 at 12:44 UTC |