In my anchor tag, I don't have any id. But I need to get that value in Httpunit in-order to click.
Here is the anchor tag:
<a href="#">Continue</a>
Please let me know it clearly.
In my anchor tag, I don't have any id. But I need to get that value in Httpunit in-order to click.
Here is the anchor tag:
<a href="#">Continue</a>
Please let me know it clearly.
you can actually get this like
//a[contains(.,'Continue')]
//a[starts-with(.,'Continue')]
//a[not(@id)]
//a[contains(@href,'#')]
what ever you like
i recommend you to see w3schools
and Google it before asking some very basic questions.
You'll find the anchor as part of the links supplied by WebResponse.getLinks ...
WebResponse page=wc.getResponse( ... .. page.getLinks() ...