more casper rpogress

This commit is contained in:
Peter Cottle 2015-04-11 12:44:18 -07:00
parent b9337909ba
commit 5a1953aa25
3 changed files with 6 additions and 10 deletions

View file

@ -8,9 +8,11 @@ var CasperUtils = {
// Setup some sanity error handling
casper.on('page.error', function(msg, trace) {
casper.echo('Error: ' + msg, 'ERROR');
casper.echo('Stack: ' + trace);
casper.echo('Stack: ' + JSON.stringify(trace));
});
casper.options.logLevel ="debug";
casper.start(url, callback);
return casper;
},
getRoot: function() {

View file

@ -1,12 +1,7 @@
var CasperUtils = require('./casperUtils').CasperUtils;
casper.on('page.error', function(msg, trace) {
casper.echo('Error: ' + msg, 'ERROR');
casper.echo('Stack: ' + JSON.stringify(trace));
});
casper.options.logLevel ="debug";
casper.start(
CasperUtils.start(
casper,
CasperUtils.getUrlForCommands([
'asd'
]),
@ -51,5 +46,4 @@ casper.start(
))
*/
.then(CasperUtils.testDone);
}).run();

View file

@ -51,7 +51,7 @@ casper.start(
.then(function() {
this.page.sendEvent('keypress', this.page.event.key.Enter);
})
.wait(700)
.wait(1700)
.then(CasperUtils.screenshot.entirePage)
.then(CasperUtils.asserts.selectorContainsText(
'div.levelNameWrapper',