[info] [phantom] Starting...
[info] [phantom] Running suite: 2 steps
[debug] [phantom] Navigation requested: url=
http://casperjs.org/, type=Other, willNavigate=true, isMainFrame=true
[debug] [phantom] Successfully injected Casper client-side utilities
[info] [phantom] Step startStep 2/2: done in 1835ms.
[debug] [phantom] Navigation requested: url=about:blank, type=Other, willNavigate=true, isMainFrame=true
[debug] [phantom] url changed to "about:blank"
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
casper.start("http://casperjs.org/", function startStep(){
var processedData = null;
this.then(function importantProcessingStep() {
this.log("Entering importantProcessing");
this.thenOpen("http://phantomjs.org/", function processPhantomjs(){
processedData = "Processed Data";
});
this.log("Exiting importantProcessing");
});
this.then(function insertToDBStep() {
this.log("Inserting the data "+processedData);
});
});
casper.run();
[info] [phantom] Starting...
[info] [phantom] Running suite: 2 steps
[debug] [phantom] Navigation requested: url=
http://casperjs.org/, type=Other, willNavigate=true, isMainFrame=true
[debug] [phantom] Successfully injected Casper client-side utilities
[info] [phantom] Step startStep 2/2: done in 2523ms.
[debug] [phantom] Entering importantProcessing
[debug] [phantom] Exiting importantProcessing
[info] [phantom] Step importantProcessingStep 3/4: done in 2543ms.
[debug] [phantom] Navigation requested: url=
http://phantomjs.org/, type=Other, willNavigate=true, isMainFrame=true
[debug] [phantom] Successfully injected Casper client-side utilities
[info] [phantom] Step processPhantomjs 5/6: done in 3647ms.
[debug] [phantom] Inserting the data Processed Data
[info] [phantom] Step insertToDBStep 6/6: done in 3670ms.
[info] [phantom] Done 6 steps in 3686ms
[debug] [phantom] Navigation requested: url=about:blank, type=Other, willNavigate=true, isMainFrame=true
[debug] [phantom] url changed to "about:blank"