Advertisement
Guest User

Untitled

a guest
Jan 10th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. var casper = require('casper').create();
  2. var url = 'https://itunesconnect.apple.com/itc/static/login?view=1&path=%2FWebObjects%2FiTunesConnect.woa%3F'
  3.  
  4. casper.on("page.error", function(msg, trace) {
  5. this.echo("Error: " + msg, "ERROR");
  6. this.echo("file: " + trace[0].file, "WARNING");
  7. this.echo("line: " + trace[0].line, "WARNING");
  8. this.echo("function: " + trace[0]["function"], "WARNING");
  9. errors.push(msg);
  10. });
  11.  
  12.  
  13.  
  14. casper.start(url, function(){
  15. casper.wait(7000, function(){
  16. // casper.echo(casper.getHTML());
  17. })
  18. })
  19.  
  20. casper.run(function() {
  21. if (errors.length > 0) {
  22. this.echo(errors.length + ' Javascript errors found', "WARNING");
  23. } else {
  24. this.echo(errors.length + ' Javascript errors found', "INFO");
  25. }
  26. casper.exit();
  27. });
  28.  
  29. Error: Error: undefined is not a constructor (evaluating '$stateParams.path.startsWith('/')')
  30.  
  31. at setupDSiFrame (https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js?cache=111920151100:99:46)
  32.  
  33. at https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js?cache=111920151100:19:37
  34.  
  35. at $digest (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:13:11750)
  36.  
  37. at $apply (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:13:13237)
  38.  
  39. at f (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:12:56414)
  40.  
  41. at r (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:12:65848)
  42.  
  43. at onreadystatechange (https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100:12:66409)
  44.  
  45. file: https://itunesconnect.apple.com/itc/js/compiled/lib/vendor.js?cache=111920151100
  46.  
  47. line: 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement