From 046038b39c8d0f8fc4ebf4fbb3221305f5e1a1cb Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 23 Apr 2014 13:32:23 +0200 Subject: [PATCH] More logging. --- tools/screenshots.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/screenshots.js b/tools/screenshots.js index c7ccc562f..1d9224a66 100644 --- a/tools/screenshots.js +++ b/tools/screenshots.js @@ -112,9 +112,6 @@ var examples = [ */ var waitForExtReady = function(p, fun) { var me = this; - - console.log('Waiting for ExtJS to be ready...'); - var readyChecker = window.setInterval(function() { var isReady = p.evaluate(function() { @@ -122,7 +119,10 @@ var waitForExtReady = function(p, fun) { }); if (isReady) { - console.log('ExtJS is ready.'); + var url = p.evaluate(function(){ + return window.location.href; + }); + console.log('ExtJS is ready (' + url + ').'); window.clearInterval(readyChecker); // call the function that waited to be executed fun.call(me); @@ -166,6 +166,8 @@ var capture = function(exampleUrl, ii, cfg){ page.open(pageUrl, function(){ + console.log("Opening " + pageUrl); + waitForExtReady(page, function() { window.setTimeout(function(){