When i run a casperjs script, my script is blocked on the console message [info] [phantom] Starting... I don't understand why.
My script
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
});
var login = '******@hotmail.fr';
var password = '*******';
var baseURL = 'http://fr.bazarchic.com/';
casper.start('http://fr.bazarchic.com/', function(){
this.fill('form[action="/login/"', {
'email' : login,
'pass' : password
}, true)
});
casper.then(function() {
var pageTitle = this.evaluate(function(){
return document.title;
})
this.echo(pageTitle);
});
In fact, i simply forgot to put casper.run();
at the end.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With