title: casperjs - Using casper.options and specifically injecting casper clientScripts using casper.tester
body: <p>The <a href="http://docs.casperjs.org/en/latest/modules/casper.html#captureSelector" rel="noreferrer">docs strate</a> you can pass an <code>options</code> object to <code>casperjs.create()</code> including js clientScripts to inject to the client page.</p>
  
  <p>The <a href="http://docs.casperjs.org/en/latest/modules/casper.html#captureSelector" rel="noreferrer">docs also state</a> that you shouldn't casper.create  instance in a test file.</p>
  
  <p>The docs don't state (at least I couldn't find it) how to use an <code>options</code> object with the casper.tester class. I did try to do something like:</p>
  
  <pre><code>casper.options = {
      clientScripts:[
          '../testlib/sinon-1.7.3.js'
          ],
      logLevel:"warning",
      verbose:true
  
  };  
  </code></pre>
  
  <p>Before <code>casper.test.begin</code> but it broke the test.</p>
  
  <p>putting it between the test.begin and casper.start. </p>
  
  <pre><code>casper.test.begin('Basic index.html elements test',14, function suite(test){
      casper.options..etc
      casper.start(url, function(){
      //also tried here
  </code></pre>
  
  <p>and also beneath it also broke the tests</p>
  
  <p>I,ll be glad for any direction with this. Especially with the injection part</p>