hello,
I don't understand why the pg freezes on the line : this.wait(2000, function() {
- Output ------------------------------------------------------------------------
I've waited for a second.
I've waited for a second second!
Wait 2 s
...
- the code ----------------------------------------------------------------------
var casper = require('casper').create();
casper.start('
http://google.com/')
casper.wait(1000, function() {
this.echo("I've waited for a second.");
this.wait(1000, function() {
this.echo("I've waited for a second second!");
});
});
casper.run(function() {
this.echo("Wait 2 s");
this.wait(2000, function() {
this.echo("I've waited for two seconds.");
});;
});