Skip to content

Instantly share code, notes, and snippets.

@ebrehault
Created February 14, 2013 17:17
Show Gist options
  • Save ebrehault/4954392 to your computer and use it in GitHub Desktop.
Save ebrehault/4954392 to your computer and use it in GitHub Desktop.
casper drag&drop not working with leaflet
//==============================================================================
// Casper generated Thu Feb 14 2013 18:15:16 GMT+0100 (CET)
//==============================================================================
var x = require('casper').selectXPath;
var casper = require('casper').create();
casper.options.viewportSize = {width: 1615, height: 964};
casper.start('http://leafletjs.com/');
casper.then(function() {
this.mouse.down(490, 66);
this.mouse.move(1102, 680);
this.mouse.up(1102, 680);
});
casper.wait(1000);
casper.then(function() {
this.captureSelector("screenshot1.png", "html");
});
casper.run(function() {this.test.renderResults(true);});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment