Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c607459

Browse files
committed
fix (navigation): The defer label should appear before other window names,
not after.
1 parent b131309 commit c607459

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/protractor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ Protractor.prototype.get = function(destination) {
267267
destination = url.resolve(this.baseUrl, destination);
268268

269269
this.driver.get('about:blank');
270-
this.driver.executeScript('window.name += "' + DEFER_LABEL + '";' +
270+
this.driver.executeScript(
271+
'window.name = "' + DEFER_LABEL + '" + window.name;' +
271272
'window.location.href = "' + destination + '"');
272273

273274
// Make sure the page is an Angular page.

0 commit comments

Comments
 (0)