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

Commit

Permalink
fix (navigation): The defer label should appear before other window n…
Browse files Browse the repository at this point in the history
…ames,

not after.
  • Loading branch information
juliemr committed Sep 12, 2013
1 parent b131309 commit c607459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ Protractor.prototype.get = function(destination) {
destination = url.resolve(this.baseUrl, destination);

this.driver.get('about:blank');
this.driver.executeScript('window.name += "' + DEFER_LABEL + '";' +
this.driver.executeScript(
'window.name = "' + DEFER_LABEL + '" + window.name;' +
'window.location.href = "' + destination + '"');

// Make sure the page is an Angular page.
Expand Down

0 comments on commit c607459

Please sign in to comment.