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"]'});