Viking CoderZ
We code for passion ...thats it!!!
Friday, 10 February 2012
how to find out the anchor text in htmlunit
we can use the asText() method to find out the anchor text associated with an anchor using htmlunit.
e.g.
HtmlAnchor anc=(HtmlAnchor)page.getByXpath("//a").get(0);
System.out.println("Anchor Text " +anc.asText());
1 comment:
Jhonathan
14 August 2017 at 19:26
Thanks
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Thanks
ReplyDelete