Created
March 31, 2015 14:49
-
-
Save rgomezcasas/20ec896320873a503fd1 to your computer and use it in GitHub Desktop.
Casper Helpers
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
casper.on("page.error", function(msg, trace) { | |
this.echo("Error: " + msg, "ERROR"); | |
this.echo("file: " + trace[0].file, "WARNING"); | |
this.echo("line: " + trace[0].line, "WARNING"); | |
this.echo("function: " + trace[0]["function"], "WARNING"); | |
}); | |
casper.on('remote.message', function(message) { | |
this.echo('Remote: ' + message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment