1

We have the API for getting all the WebLinks known as response.getLinks() assuming you have fetched the WebResponse in response. See the problem is I want to fetch only those anchor tags which have specific attribute like all those anchor tags which have data-class attribute and value is true.

<a href="#" data-class="true"></a> //Qualify
<a href="#">?</a> // Does not qualify

It is possible to get all the links and traverse them and identify the anchors of interest. But I dont want to do this long procedure.

Does any short method exist to get weblinks having specific property in HTTPUnit?

gigadot
  • 8,879
  • 7
  • 35
  • 51
Sachin Jain
  • 21,353
  • 33
  • 103
  • 168

0 Answers0