I am working on some project where I need to pick up some information from another site. I am using HtmlUnit for this purpose, but the problem is that I cannot go through the elements on the same page.
Example:
<div id="some_id"> <div> <div> <div> ...... many divs in between ...... <div id="my_target_div"> some information </div> ........ ........ </div>
Now, how to get div with id my_target_div and information inside div
source share