This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/screenshots/screenshots.js

42 lines
759 B
JavaScript
Raw Normal View History

var casper = require('casper').create({
viewportSize: {
width: 1024,
height: 768
},
verbose: true,
logLevel: "debug"
});
var rootUrl = 'https://quay.io/';
casper.start(rootUrl);
casper.on("remote.message", function(msg, trace) {
this.echo("Message: " + msg, "DEBUG");
});
casper.on("page.error", function(msg, trace) {
this.echo("Page error: " + msg, "ERROR");
});
casper.then(function() {
this.capture('landing.png');
});
2013-10-11 18:42:21 +00:00
casper.thenOpen(rootUrl + 'signin', function () {
this.fill('form', {
'username': 'devtable',
'password': 'C>K98%y"_=54x"<',
}, true);
});
casper.then(function() {
this.waitForText('Your Top Repositories');
});
casper.then(function() {
this.capture('user-home.png');
});
casper.run();