diff --git a/IPython/html/tests/casperjs/util.js b/IPython/html/tests/casperjs/util.js
index 294edfc..42a639b 100644
--- a/IPython/html/tests/casperjs/util.js
+++ b/IPython/html/tests/casperjs/util.js
@@ -13,6 +13,9 @@ casper.get_notebook_server = function () {
casper.open_new_notebook = function () {
var baseUrl = this.get_notebook_server();
this.start(baseUrl);
+ this.then(function () {
+ console.log(this.getHTML());
+ });
this.thenClick('button#new_notebook');
this.waitForPopup('');