title: CasperJS: Open a new window
body: <p>Have a link on the page:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a id="quote" href="quote.html" target="_blank"&gt;Quote&lt;/a&gt;
  </code></pre>
  
  <p>Click it in CasperJS, but I can't capture the page in new window.</p>
  
  <pre class="lang-js prettyprint-override"><code>casper.start('http://domain.com');
  casper.thenClick('#quote');
  casper.then(function() {
      this.capture('file1.png');
  });
  
  casper.run();
  </code></pre>