title: Read a local HTML file from CasperJS start()
body: <p>I am writing a simple casperjs script to fill a rather complex form on a website. The HTML code of the website is a bit messy and I don't want to go through the navigation steps to reach the page everytime when I am testing my script.</p>
  
  <p>I have the form page saved as HTML file but I couldn't even properly load a testing HTML file into casperjs. Here is the code, file and result:</p>
  
  <pre><code>var casper = require('casper').create();
  
  casper.start('file://test.html').then(function() {
      this.echo('started')
      this.echo(this.getPageContent())
  });
  
  casper.run(function(){
      this.echo('ended');
      casper.done();
  });
  </code></pre>
  
  <p>The test file:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;My page&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1 class="page-title"&gt;Hello&lt;/h1&gt;
          &lt;ul&gt;
              &lt;li&gt;one&lt;/li&gt;
              &lt;li&gt;two&lt;/li&gt;
              &lt;li&gt;three&lt;/li&gt;
          &lt;/ul&gt;
         &lt;footer&gt;&lt;p&gt;2012 myself&lt;/p&gt;&lt;/footer&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The execution result:</p>
  
  <pre><code>C:&gt;started
  &lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;
  ended
  </code></pre>
  
  <p>Why the tags within the HTML body are gone?</p>