htmlunit模拟浏览器访问页面,请问怎么设置页面停留时间

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);
webClient.addRequestHeader("Referer", "http://www.hao123.com");
HtmlPage rootPage= webClient.getPage(url);

holdtom
浏览 1578回答 2
2回答

Cats萌萌

Time.out("时间差")

炎炎设计

Time.out("时间戳")
打开App,查看更多内容
随时随地看视频慕课网APP