Hi, maybe you can post the source code and possible error messages.
Getting started and much more:
http://htmlunit.sourceforge.net/gettingStarted.html
Do you have something like this ?:
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage("http://htmlunit.sourceforge.net");
page.getLinkWith("LinkName"), click()
source
share