diff --git a/lib/protractor.js b/lib/protractor.js index 9a08dae00..543204624 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -19,7 +19,6 @@ var ExpectedConditions = require('./expectedConditions').ExpectedConditions; /* global angular */ var DEFER_LABEL = 'NG_DEFER_BOOTSTRAP!'; -var ENABLE_DEBUG_INFO_LABEL = 'NG_ENABLE_DEBUG_INFO!'; var DEFAULT_RESET_URL = 'data:text/html,'; var DEFAULT_GET_PAGE_TIMEOUT = 10000; @@ -640,7 +639,7 @@ Protractor.prototype.get = function(destination, opt_timeout) { this.driver.get(this.resetUrl).then(null, deferred.reject); this.executeScript_( - 'window.name = "' + ENABLE_DEBUG_INFO_LABEL + DEFER_LABEL + '" + window.name;' + + 'window.name = "' + DEFER_LABEL + '" + window.name;' + 'window.location.replace("' + destination + '");', msg('reset url'))