Skip to content

Instantly share code, notes, and snippets.

@ebrehault
Created February 15, 2013 16:13
Show Gist options
  • Save ebrehault/4961393 to your computer and use it in GitHub Desktop.
Save ebrehault/4961393 to your computer and use it in GitHub Desktop.
Casperjs issues with SVG
//==============================================================================
// 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