青韵染月 2018-07-10 09:33 采纳率: 0%
浏览 3214
已结题

html访问页面,怎么设置停留时间

页面停留时间,是根据操作才会有的,操作有了,没有停留时间,
WebClient webClient = new WebClient(BrowserVersion.FIREFOX_38,ip,port);
webClient.getOptions().setJavaScriptEnabled(true);
webClient.getOptions().setCssEnabled(false);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
webClient.getOptions().setTimeout(15000);
webClient.getOptions().setThrowExceptionOnScriptError(false);
webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
HtmlPage rootPage= webClient.getPage(url);

  • 写回答

6条回答

  • cqs_bk 2018-07-10 09:36
    关注

    使用定时器就可以,前端有定时器函数,你可以上网似乎搜

    评论

报告相同问题?