I use HtmlUnit to create Page Snapshots, to be used for various purposes. What i found out was that HtmlUnit is not sending requests in parallel, as it happens in browser (6 parallel requests at a time). Can somebody help me with this ?
My code :-
wc = new WebClient(BrowserVersion.CHROME);
//wc.setAjaxController(new NicelyResynchronizingAjaxController());
//wc.getOptions().setCssEnabled(true);
//wc.setCssErrorHandler(new SilentCssErrorHandler());
wc.getOptions().setThrowExceptionOnFailingStatusCode(false);
wc.getOptions().setThrowExceptionOnScriptError(false);
wc.getOptions().setRedirectEnabled(false);
//wc.getOptions().setAppletEnabled(true);
wc.getOptions().setJavaScriptEnabled(true);
wc.getOptions().setPrintContentOnFailingStatusCode(false);