Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var casper = require('casper').create();
- var url = 'https://itunesconnect.apple.com/itc/static/login?view=1&path=%2FWebObjects%2FiTunesConnect.woa%3F'
- 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");
- errors.push(msg);
- });
- casper.start(url, function(){
- casper.wait(7000, function(){
- // casper.echo(casper.getHTML());
- })
- })
- casper.run(function() {
- if (errors.length > 0) {
- this.echo(errors.length + ' Javascript errors found', "WARNING");
- } else {
- this.echo(errors.length + ' Javascript errors found', "INFO");
- }
- casper.exit();
- });
- Error: Error: undefined is not a constructor (evaluating '$stateParams.path.startsWith('/')')
- at setupDSiFrame (https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js?cache=111920151100:99:46)
- at https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js?cache=111920151100:19:37
- at $digest (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:13:11750)
- at $apply (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:13:13237)
- at f (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:12:56414)
- at r (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:12:65848)
- at onreadystatechange (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:12:66409)
- file: https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100
- line: 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement