From 59533d95219796ce18f796434f8c3396ada7402c Mon Sep 17 00:00:00 2001 From: Julie Date: Wed, 21 May 2014 12:34:42 -0700 Subject: [PATCH] fix(navigation): revert changes to the page reset Navigating to an empty data URL won't work for internet explorer, sadly. Reverting to about:blank. Will watch for flakes and explore other options. --- lib/protractor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/protractor.js b/lib/protractor.js index 7d20c270a..0fa1772ee 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -899,7 +899,7 @@ Protractor.prototype.get = function(destination, opt_timeout) { return this.driver.get(destination); } - this.driver.get('data:text/html,'); + this.driver.get('about:blank'); this.driver.executeScript( 'window.name = "' + DEFER_LABEL + '" + window.name;' + 'window.location.replace("' + destination + '");'); @@ -908,7 +908,7 @@ Protractor.prototype.get = function(destination, opt_timeout) { // we try to execute any asynchronous scripts. this.driver.wait(function() { return self.driver.executeScript('return window.location.href;').then(function(url) { - return url !== 'data:text/html,'; + return url !== 'about:blank'; }); }, timeout * 1000, 'Timed out waiting for page to load');