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
var casper = require("casper").create({ | |
//loadImages: false, | |
//logLevel: 'debug', | |
verbose: true | |
}); | |
var utils = require('utils'); | |
/* ----- test parameters ----- */ |
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
/** | |
* This script will capture a screenshot of a webpage page | |
* Usage: $ casperjs screenshot.js <url> <filename.[jpg|png|pdf]> [--size=800x600] [--rename] | |
* | |
* QVGA (320x240) | |
* HVGA (480x320) | |
* VGA (640x480) | |
* SVGA (800x600) | |
* XGA (1024x768) | |
* HD (1280x720) |
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
/** | |
* This casperjs script return balance and statement from bank "Credit Agricole of Languedoc (France)" for a given account. | |
* May work with other agencies | |
* | |
* Usage: | |
* | |
* $ casperjs credit-agricole.js --auth=12345678912:123456 | |
* $ casperjs credit-agricole.js --auth=12345678912:123456 --account=12345678912 | |
* $ casperjs credit-agricole.js --auth=12345678912:123456 --account=12345678912 --json | |
* $ casperjs credit-agricole.js http://www.ca-languedoc.fr/ --auth=12345678912:123456 --account=12345678912 --json |
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
/** | |
* This casperjs script return PDF notice insee position in France for a given 'siren' account. | |
* This script is only for your personal use at your own risk. | |
* | |
* Usage: | |
* | |
* $ casperjs avis-situation-insee.js siren-number | |
* $ casperjs avis-situation-insee.js 123456789 | |
* $ casperjs avis-situation-insee.js 123456789 --filename=myfile.pdf | |
* |