baniol
5/15/2013 - 6:08 AM

casperjs drag and drop

var casper = require('casper').create();

casper.start();
casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X)');
casper.viewport(1024, 768);

casper.thenOpen('http://jsbin.com/ifuma#noedit', function() {
	
	this.capture('test.png');	

	this.mouse.down(10, 10);
   	this.mouse.move(200, 200);
    	this.mouse.up(200, 200);
	
	this.capture('test1.png');

});

casper.run();