title: Accessing HTML that loads in AJAX
body: <p>I'm trying to use CasperJS on an application that loads only the skeleton of the page when accessing the page. Then it loads the main content in AJAX.</p>
  
  <p>Basically, my code appears after loading in the following div </p>
  
  <pre><code>    &lt;div class="content"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>It seems that CasperJS can't access the content of this div after the initial load. And it's too bad because the entire app is within this tag (don't blame me, blame the devs who used Backbone).</p>
  
  <p>After an extensive search, I found that I could perhaps use the <code>evaluate</code> function to do a <code>document.body.innerHTML</code> to dump the content of the requested HTML in the document, but it does not seem to work.</p>
  
  <p>Any idea? Thanks so much in advance.</p>