![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: How to click on 2nd link (both have same Xpath)by Corion (Pope) |
on Jan 02, 2013 at 14:54 UTC ( #1011284=note: print w/replies, xml ) | Need Help?? |
You can have indices in XPath expressions. I suggest you use them. See the "predicates" in the XPath specification. As an alternative, you can do the same in Perl, by first finding all relevant links, storing them in an array and then passing the second entry in the array as an argument to ->click().
In Section
Seekers of Perl Wisdom
|
|