Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Happy New Year.
I have a humble question for you on mech:firefox.
I have 2 links which have a same xpath pattern. I need to click on the 2nd one. By doing the below code, I am Clicking default first. I need to click the 2nd. How could it be possible..?
$mech->click({ xpath => "//a[\@title=\"Go to the next page\"]", synchronize => 0 });
Thx.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to click on 2nd link (both have same Xpath)
by Corion (Patriarch) on Jan 02, 2013 at 14:54 UTC | |
by Anonymous Monk on Jan 02, 2013 at 15:05 UTC |