I am having a problem clicking on a link within htmlunit. I went through the api on the site(which I didn't really understand well) and looked at all the sample ...
I found it very difficult to work with htmlunit in terms of creating new html content on the fly like we can do in jquery.
For example given a text node: