I use "http://104.238.150.223:8888" in order to test it, which is a html that we can paint with mouse on it, and my code is as follow:
var casper = require('casper').create();
var mouse = require('mouse').create(casper);
casper.start('http://104.238.150.223:8888',function() {
this.echo(this.getTitle());
});
casper.then(function() {
this.wait(2000,function() {
this.mouse.down(0,0);
this.mouse.move(40,40);
this.mouse.move(60,40);
this.mouse.down(60,40);
});
this.capture('test.png');
})
But it doesn't work, there is nothing in the drawing board T_T