Created
February 14, 2013 17:17
-
-
Save ebrehault/4954392 to your computer and use it in GitHub Desktop.
casper drag&drop not working with leaflet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================== | |
// 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