I need to run 3 url requests simultaneously.I thought of running 3 casper instances each fetching a url. As a simple example,I tried with 2 instances.
var casper=require('casper').create();
casper.start('http://www.google.com');
var casper1=require('casper').create();
casper1.start('http://www.google.com');
casper1.then(function() {
casper1.echo('inside');
});
casper1.echo('outside');
casper1.run();
casper.run();
Output shows only 'outside'.Why does'nt it run the casper1.echo('inside');