0

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.

Kjuly
  • 34,476
  • 22
  • 104
  • 118

2 Answers2

0

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.

akhter wahab
  • 4,045
  • 1
  • 25
  • 47
0

You'll find the anchor as part of the links supplied by WebResponse.getLinks ...

WebResponse page=wc.getResponse( ... .. page.getLinks() ...

Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186