Skip to content

Instantly share code, notes, and snippets.

@pablopaul
Forked from asciidisco/dalek_flocke.js
Last active December 21, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablopaul/6365300 to your computer and use it in GitHub Desktop.
Save pablopaul/6365300 to your computer and use it in GitHub Desktop.
For debug url with HTTP Auth
module.exports = {
'A lot of screenshots': function (test) {
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}];
var pages = ['http://123:www@google.com'];
resolutions.forEach(function (res) {
pages.forEach(function (page) {
test.open(page)
.resize(res)
.screenshot('pics/' + res.width + '_' + res.height + '_' + page.replace('http://', '') + '.png')
});
});
test.done();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment