title: Pass params like variable to evaluate in casperjs and login into site
body: <p>I'm writing a python script that pass username and password like params to my casperjs script, describe below. But I don't know why a receive the error: </p>
  
  <pre><code>CasperError: casper.test property is only available using the `casperjs test` command
       C:/casperjs/modules/casper.js:179
  </code></pre>
  
  <p>Can someone help me about this issue?</p>
  
  <p>CasperJS.py: </p>
  
  <pre><code>import os
  import subprocess
  
  # PATH to files
  casperjs = 'c:\casperjs\bin\casperjs.exe'
  app_root = os.path.dirname(os.path.realpath(__file__))
  script = os.path.join(app_root, 'test2.js')
  
  #  Request username and password
  username = raw_input("Usuario:")
  password = raw_input("Senha:")
  
  # Username and password like
  auth = [username, password] 
  
  # Execute process casperjs via python
  subprocess.Popen(['casperjs', script, auth[0], auth[1]], shell=True)
  </code></pre>
  
  <p>CasperJS.js:</p>
  
  <pre><code>var casper = require('casper').create({
      clientScript: ['jquery.min.js'],
      verbose: true,
      logLevel: "debug",
      // Disable load images
      pageSettings: {
      loadImages: true
      }
  });
  
  # variables
  var url = 'http://minha.oi.com.br';
  var username = casper.echo(casper.cli.raw.get(0));
  var password = casper.echo(casper.cli.raw.get(1)); 
  
  # start casperjs
  casper.start(url);
  
  # Try login on the website
  casper.thenEvaluate(function(usuario, senha) {
  document.querySelector('input#Ecom_User_ID').setAttribute('value', usuario);
  document.querySelector('input#Ecom_Password').setAttribute('value', password);
  
  }, { usuario: username, senha: password });
  
  # Check the current URL
  casper.then(function() {
          this.echo(this.getCurrentUrl());
  });
  casper.run();
  </code></pre>