Using getAnchorByText, but want the 2nd of 2 links on the page
        Posted  
        
            by Blankman
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Blankman
        
        
        
        Published on 2010-04-11T22:03:00Z
        Indexed on 
            2010/04/11
            22:33 UTC
        
        
        Read the original article
        Hit count: 261
        
On my page, there are 2 links with the same anchor text.
I am using HtmlUnit to get the link by the anchor text.
The call to:
page.getAnchorByText("1");
Seems to always get the first occurrance, is there a way to get the 2nd occurance if there are 2 links?
© Stack Overflow or respective owner