I am trying to get the original source for a particular web page.
The page executes some scripts that modify the DOM as soon as it loads. I would like to get the sou
Regarding the docs you can use #debugPage()
to get the content of the current page.
casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X)');
casper.start('http://www.xxxxxxx.xxx/login');
casper.waitForSelector('input#login', ... );
casper.then(function() {
this.debugHTML();
});
casper.run();
regards david