|
|
| go ahead... be a heretic | |
| PerlMonks |
How to click on 2nd link (both have same Xpath)by Anonymous Monk |
| on Jan 02, 2013 at 14:45 UTC ( #1011282=perlquestion: print w/ replies, xml ) | Need Help?? |
|
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.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||