depojones has asked for the wisdom of the Perl Monks concerning the following question:
Xpath is identifying more than one element for class name "nav"<a class="nav" href="index.html"> Home </a> <a class="nav" href="about.html"> About us </a> <a class="nav" href="contact.html"> Contact us < +/a>
My question is, how do I click the nth tag (contact us) from the example above? Thanks$mech->click({xpath => '//a[@class="nav"]', synchronize=>0, });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mechanize Firefox xpath link with same name
by Corion (Patriarch) on Jul 15, 2014 at 12:42 UTC | |
by depojones (Initiate) on Jul 15, 2014 at 13:04 UTC |