fixes #178 - added Casper.getPageContent()
Extracts and returns the raw body contents for latest retrived page. Sample script: ```javascript var casper = require('casper').create(); casper.start().then(function() { this.open('http://search.twitter.com/search.json?q=casperjs', { method: 'get', headers: { 'Accept': 'application/json' } }); }); casper.then(function() { require('utils').dump(JSON.parse(this.getPageContent())); }); casper.run(function() { this.exit(); }); ```
Showing
2 changed files
with
25 additions
and
1 deletions
-
Please register or sign in to post a comment