diff --git a/IPython/html/tests/util.js b/IPython/html/tests/util.js index 61f0a23c0..7c0df4ca0 100644 --- a/IPython/html/tests/util.js +++ b/IPython/html/tests/util.js @@ -13,7 +13,8 @@ casper.open_new_notebook = function () { var baseUrl = this.get_notebook_server(); this.start(baseUrl); this.waitFor(this.page_loaded); - this.thenClick('button#new_notebook'); + this.thenClick('#kernel-python2 a, #kernel-python3 a'); + this.waitForPopup(''); this.withPopup('', function () {this.waitForSelector('.CodeMirror-code');});