tikiwiki/packages/tiki-pkg-casperjs/jerome-breton/casperjs/samples/download.js
2023-11-20 20:52:04 +00:00

15 lines
330 B
JavaScript
Executable File

/*eslint strict:0*/
/*global CasperError, console, phantom, require*/
/**
* download the google logo image onto the local filesystem
*/
var casper = require("casper").create();
casper.start("http://www.google.fr/", function() {
this.download("http://www.google.fr/images/srpr/logo3w.png", "logo.png");
});
casper.run();