slloyd has asked for the wisdom of the Perl Monks concerning the following question:

I am using WWW::Mechanize::Firefox and cannot figure out how to click on the buttons once I get them using xpath.
use WWW::Mechanize::Firefox; ... my @buttons = $mech->xpath('//input[@value="Add To Cart"]'); #this find 6 buttons on the page foreach my $button (@buttons){ $mech->click_button(input=>$button); #this hangs }
s/te/ve/

Replies are listed 'Best First'.
Re: Clicking and WWW::Mechanize::Firefox
by Anonymous Monk on Feb 11, 2015 at 01:16 UTC