The html page has page links, 1 at the top of the page, and the other at the bottom below.
Using HtmlUnit, I am currently getting HtmlAnchor on the page using getByAnchorText("1");
Some links above have a problem, so I want to link to lower links using XPath.
nextPageAnchor = (HtmlAnchor) page.getByXPath("");
How can I link to the second link on the page using xpath?
I need to reference the link using AnchorText, so the link is like:
<a href="....">33</a>
href has random text and is a javascript function, so I have no idea what it will be.
Is this possible with xpath?
source share