开发者

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

开发者 https://www.devze.com 2023-02-02 23:44 出处:网络
i am trying to click on hyperlinks and buttons of webpage using HtmlUnit Driver in Java but i am failed in doing it.

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

精彩评论

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