开发者

Regarding click on hyperlink and button using HtmlUnit Driver in java application

i am trying to click on hyperlinks and buttons of webpage using HtmlUnit Driver in Java but i am failed in doing it. What code i have to write in java for performing such operation

Please Help me开发者_高级运维 out


Hi maybe you could post your source-code and eventual error-messages.

Getting-started and more is here:

http://htmlunit.sourceforge.net/gettingStarted.html

Do you have something similar like this?:

final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage("http://htmlunit.sourceforge.net");
page.getLinkWith("LinkName"), click()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜