diff --git a/lib/protractor.js b/lib/protractor.js index b7429c888..f75f3977a 100644 --- a/lib/protractor.js +++ b/lib/protractor.js @@ -637,7 +637,8 @@ Protractor.prototype.get = function(destination, opt_timeout) { this.driver.get(this.resetUrl).then(null, deferred.reject); this.executeScript_( - 'window.name = "' + DEFER_LABEL + ENABLE_DEBUG_INFO_LABEL + '" + window.name;' + + 'window.name = "' + ENABLE_DEBUG_INFO_LABEL + DEFER_LABEL + '" + window.name;' + + 'window.location.replace("' + destination + '");', msg('reset url')) .then(null, deferred.reject);