From: Ahmed A. <asa...@ya...> - 2015-05-21 14:52:04
|
Hi Adam, Please try simulating CHROME. Ahmed From: adam <sh...@qq...> To: htm...@li... Sent: Thursday, May 21, 2015 2:23 PM Subject: [Htmlunit-user] How to handle lazyload page with htmlunit i can't access lazyload part.i am nearly crazy. below is my code: WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_11); webClient.getOptions().setCssEnabled(false); webClient.getOptions().setJavaScriptEnabled(true); webClient.setJavaScriptTimeout(99999); webClient.waitForBackgroundJavaScript(99999); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); HtmlPage productPage = (HtmlPage) webClient.getPage("http://detail.1688.com/offer/1228752603.html"); |