HtmlUnit模拟登录网站时注意事项

来源:互联网 发布:企业即时通讯软件 免费 编辑:程序博客网 时间:2024/06/04 17:40

如果一直登录不了,检查一下是不是通过ajax登录的,如果是需要进行如下设置,


If the website uses an ajax call to login. This worked for me. Set this

webClient.setAjaxController(new NicelyResynchronizingAjaxController());
原文链接http://stackoverflow.com/questions/10750301/login-using-htmlunit
0 0
原创粉丝点击