title: How do I use casperjs to access the url and invoke the javascript/content?
body: <p>A test site uses javascript (the decrypt functions) to generate the output content. A simple test casperjs script was created to get the site content.</p>
  
  <p>The target url is:</p>
  
  <pre><code>http://udel.bncollege.com/webapp/wcs/stores/servlet/TBListView?storeId=37554&amp;termMapping=Y&amp;catalogId=10001&amp;langId=-1&amp;courseXml=%3C%3Fxml+version%3D%221.0%22%3F%3E%3Ctextbookorder%3E%3Cschool+id%3D%22289%22+%2F%3E%3Ccourses%3E%3Ccourse+num%3D%22200%22+dept%3D%22ACCT%22+sect%3D%22010%22+term%3D%222163%22%2F%3E%3C%2Fcourses%3E%3C%2Ftextbookorder%3E
  </code></pre>
  
  <p>If one enters the URL directly into a browser, the required content is displayed if the JScript is enabled. Without JScript enabled the displayed content is the encrypted "content".</p>
  
  <p>The goal is to invoke the underlying JScript, to then process the encrypted content, displaying the generated content.</p>
  
  <p>As far as I can tell, running the test casperjs script should process the underlying javascript on the page.</p>
  
  <p>Any thoughts on what is missing???</p>
  
  <p>The test code sample is:</p>
  
  <pre><code>/*
  *
  *    udel.js:        test to take input url
  *
  *    udel.js 
  *
  *
  */
  var utils = require('utils');
  var casper = require('casper').create({
      verbose: true,
      logLevel: 'error',
      pageSettings: {
        loadImages: false,
        loadPlugins: true,
        userAgent: 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36'
    }
    });
  
  casper.start('http://udel.bncollege.com/webapp/wcs/stores/servlet
  /TBListView?storeId=37554&amp;termMapping=Y&amp;catalogId=10001&amp;langId=-1
  &amp;courseXml=%3C%3Fxml+version%3D%221.0%22%3F%3E%3Ctextbookorder
  %3E%3Cschool+id%3D%22289%22+%2F%3E%3Ccourses%3E%3Ccourse
  +num%3D%22200%22+dept%3D%22ACCT%22+sect%3D%22010%22
  +term%3D%222163%22%2F%3E%3C%2Fcourses%3E%3C%2Ftextbookorder%3E'
  , function() {
          this.echo(this.page.content);
  });
  
  casper.run();
  </code></pre>
  
  <p>Thoughts on what's missing??</p>
  
  <p>Thanks</p>