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

Commit 59533d9

Browse files
committed
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.
1 parent a8f4cd9 commit 59533d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/protractor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ Protractor.prototype.get = function(destination, opt_timeout) {
899899
return this.driver.get(destination);
900900
}
901901

902-
this.driver.get('data:text/html,<html></html>');
902+
this.driver.get('about:blank');
903903
this.driver.executeScript(
904904
'window.name = "' + DEFER_LABEL + '" + window.name;' +
905905
'window.location.replace("' + destination + '");');
@@ -908,7 +908,7 @@ Protractor.prototype.get = function(destination, opt_timeout) {
908908
// we try to execute any asynchronous scripts.
909909
this.driver.wait(function() {
910910
return self.driver.executeScript('return window.location.href;').then(function(url) {
911-
return url !== 'data:text/html,<html></html>';
911+
return url !== 'about:blank';
912912
});
913913
}, timeout * 1000, 'Timed out waiting for page to load');
914914

0 commit comments

Comments
 (0)