title: Cannot download full Document using HtmlUnit and Jsoup combination (using Java)
body: <p>Problem Statement: 
  I want to crawl this page : <a href="http://www.hongkonghomes.com/en/property/rent/the_peak/middle_gap_road/10305?page_no=1&amp;rec_per_page=12&amp;order=rental+desc&amp;offset=0" rel="nofollow">http://www.hongkonghomes.com/en/property/rent/the_peak/middle_gap_road/10305?page_no=1&amp;rec_per_page=12&amp;order=rental+desc&amp;offset=0</a></p>
  
  <p>Lets say I want to parse the address, that is "24, Middle Gap Road, The Peak, Hong Kong"</p>
  
  <p>What I did:
  I first only tried to load using jsoup, but then I noticed that the page is taking some time to load. So, then I also plugged in HTMLUnit to wait for the page to load first</p>
  
  <p>Code I wrote:</p>
  
  <pre><code>public static void parseByHtmlUnit() throws Exception{
          String url = "http://www.hongkonghomes.com/en/property/rent/the_peak/middle_gap_road/10305?page_no=1&amp;rec_per_page=12&amp;order=rental+desc&amp;offset=0";
          WebClient webClient = new WebClient(BrowserVersion.FIREFOX_38);
          webClient.waitForBackgroundJavaScriptStartingBefore(30000);
          HtmlPage page = webClient.getPage(url);
          synchronized(page) {
              page.wait(30000);
          }
          try {
              Document doc = Jsoup.parse(page.asXml());
              String address = ElementsUtil.getTextOrEmpty(doc.select(".addr"));
              System.out.println("address"+address);
          } catch (Exception e) {
               e.printStackTrace();
          }
  }
  </code></pre>
  
  <p>Expected output :
  In the console, I should get this output:
  address 24, Middle Gap Road, The Peak, Hong Kong</p>
  
  <p>Actual output :
  address </p>