Permalink
Browse files

More logging.

  • Loading branch information...
1 parent 620d42d commit 046038b39c8d0f8fc4ebf4fbb3221305f5e1a1cb @marcjansen marcjansen committed Apr 23, 2014
Showing with 6 additions and 4 deletions.
  1. +6 −4 tools/screenshots.js
View
@@ -112,17 +112,17 @@ 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() {
return Ext && Ext.isReady;
});
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(){

0 comments on commit 046038b

Please sign in to comment.