Created
February 15, 2013 16:13
-
-
Save ebrehault/4961393 to your computer and use it in GitHub Desktop.
Casperjs issues with SVG
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 Fri Feb 15 2013 14:10:44 GMT+0100 (CET) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
var casper = require('casper').create(); | |
casper.options.viewportSize = {width: 1615, height: 964}; | |
// THIS ONE PRODUCES A BAD SCREENSHOT: | |
casper.start('http://raphaeljs.com/pie.html'); | |
// THIS ONE WORKS FINE: | |
//casper.start('http://raphaeljs.com/github/impact.html'); | |
// THIS ONE DOES NOT EVEN OUTPUT ANY SCREENSHOT: | |
//casper.start('http://raphaeljs.com/github/dots.html'); | |
casper.wait(2000); | |
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