in reply to Using WWW::Mechanize::Firefox to navigate a site
Your second way should work:
$mech->click({xpath => '//*[@id="submit"]'});
Alternatively, split up the action into two steps to further investigate:
my $find_button = $mech->xpath('//*[@id="submit"]', single => 1 ); $mech->click( $find_button );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using WWW::Mechanize::Firefox to navigate a site
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 | |
|
Re^2: Using WWW::Mechanize::Firefox to navigate a site
by Matt™ (Acolyte) on Nov 03, 2012 at 12:44 UTC |