console.log
で使用すると、なぜevaluate
機能するのですか:
casper.then(function() {
this.evaluate( function() {
console.log('hello');
});
});
しかし、これはうまくいきません:
casper.then(function() {
this.evaluate( function() {
setTimeout( function() {console.log('hello');}, 1000);
});
});