title: Sample Casper JS Script does not work
body: <p>UPDATE: I found the solution and I forgot to add </p>
  
  <pre><code>var casper = require('casper').create();
  </code></pre>
  
  <p>on the top. </p>
  
  <p>The original question:
  I installed phantom js 1.9.2 and casper js 1.0.3. Additionally I copy and pasted the follwing sample script directly from the casper js tutorial page:</p>
  
  <pre><code>casper.start('http://www.google.fr/', function() {
      var url = 'http://www.google.fr/intl/fr/about/corporate/company/';
      this.download(url, 'google_company.html');
  });
  
  casper.run(function() {
      this.echo('Done.').exit();
  });
  </code></pre>
  
  <p>This is the output on my mac os lion:</p>
  
  <pre><code>bin Tom$ ./casperjs ../site_loader.js 
  2013-11-26 18:53:20.375 phantomjs[2136:130b] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
  ReferenceError: Can't find variable: casper
  
    ../site_loader.js:1
  Hint: you may want to use the `casperjs test` command.
  ^C
  </code></pre>
  
  <p>I have to manually cancel it otherwise it will never stop. However running the suggested command yields: </p>
  
  <pre><code>bin Tom$ ./casperjs test
  2013-11-26 18:54:01.504 phantomjs[2137:130b] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
  No test path passed, exiting.
  </code></pre>
  
  <p>What is not correct here?</p>