Selenium IE11 - Failed to open http://localhost:4200
I am encountering a weird error in Selenium + IE11 under some very specific circumstances.
We run Selenium tests which reuse the same browser window. At some point it stops loading the site. I reloaded it manually and briefly saw Failed to open http://localhost:4200:

After a second it loads the html page but I think it loads it from cache, and the page stays stuck at the "loading..." progress indicator.
The Network Tab in F12 for some reason stops rendering (this is how it looks after a resized the window a couple of times - you can clearly see the artifacts from previous repaint events):

If I open a new tab it works from there. Once IE11 gets stuck at that "state", I can't make it work in the same tab, even if I delete site data with Ctrl+Shift+Del.
Any ideas what is happening? I couldn't find anything at all about this Failed to open <URL> error by googing.
selenium internet-explorer internet-explorer-11
add a comment |
I am encountering a weird error in Selenium + IE11 under some very specific circumstances.
We run Selenium tests which reuse the same browser window. At some point it stops loading the site. I reloaded it manually and briefly saw Failed to open http://localhost:4200:

After a second it loads the html page but I think it loads it from cache, and the page stays stuck at the "loading..." progress indicator.
The Network Tab in F12 for some reason stops rendering (this is how it looks after a resized the window a couple of times - you can clearly see the artifacts from previous repaint events):

If I open a new tab it works from there. Once IE11 gets stuck at that "state", I can't make it work in the same tab, even if I delete site data with Ctrl+Shift+Del.
Any ideas what is happening? I couldn't find anything at all about this Failed to open <URL> error by googing.
selenium internet-explorer internet-explorer-11
You can try to make a test in compatibility mode. You can also try to enable the option 'Always refresh from server' in Network tab in developer tools. These are the things you can try to check from IE side. Further you can check that whether server breaks the connection or not.
– Deepak-MSFT
Nov 22 '18 at 5:17
add a comment |
I am encountering a weird error in Selenium + IE11 under some very specific circumstances.
We run Selenium tests which reuse the same browser window. At some point it stops loading the site. I reloaded it manually and briefly saw Failed to open http://localhost:4200:

After a second it loads the html page but I think it loads it from cache, and the page stays stuck at the "loading..." progress indicator.
The Network Tab in F12 for some reason stops rendering (this is how it looks after a resized the window a couple of times - you can clearly see the artifacts from previous repaint events):

If I open a new tab it works from there. Once IE11 gets stuck at that "state", I can't make it work in the same tab, even if I delete site data with Ctrl+Shift+Del.
Any ideas what is happening? I couldn't find anything at all about this Failed to open <URL> error by googing.
selenium internet-explorer internet-explorer-11
I am encountering a weird error in Selenium + IE11 under some very specific circumstances.
We run Selenium tests which reuse the same browser window. At some point it stops loading the site. I reloaded it manually and briefly saw Failed to open http://localhost:4200:

After a second it loads the html page but I think it loads it from cache, and the page stays stuck at the "loading..." progress indicator.
The Network Tab in F12 for some reason stops rendering (this is how it looks after a resized the window a couple of times - you can clearly see the artifacts from previous repaint events):

If I open a new tab it works from there. Once IE11 gets stuck at that "state", I can't make it work in the same tab, even if I delete site data with Ctrl+Shift+Del.
Any ideas what is happening? I couldn't find anything at all about this Failed to open <URL> error by googing.
selenium internet-explorer internet-explorer-11
selenium internet-explorer internet-explorer-11
edited Nov 21 '18 at 17:10
sashoalm
asked Nov 21 '18 at 16:52
sashoalmsashoalm
30.6k68253531
30.6k68253531
You can try to make a test in compatibility mode. You can also try to enable the option 'Always refresh from server' in Network tab in developer tools. These are the things you can try to check from IE side. Further you can check that whether server breaks the connection or not.
– Deepak-MSFT
Nov 22 '18 at 5:17
add a comment |
You can try to make a test in compatibility mode. You can also try to enable the option 'Always refresh from server' in Network tab in developer tools. These are the things you can try to check from IE side. Further you can check that whether server breaks the connection or not.
– Deepak-MSFT
Nov 22 '18 at 5:17
You can try to make a test in compatibility mode. You can also try to enable the option 'Always refresh from server' in Network tab in developer tools. These are the things you can try to check from IE side. Further you can check that whether server breaks the connection or not.
– Deepak-MSFT
Nov 22 '18 at 5:17
You can try to make a test in compatibility mode. You can also try to enable the option 'Always refresh from server' in Network tab in developer tools. These are the things you can try to check from IE side. Further you can check that whether server breaks the connection or not.
– Deepak-MSFT
Nov 22 '18 at 5:17
add a comment |
1 Answer
1
active
oldest
votes
Found the reason when looking at Process Explorer.

I also found this open issue in GitHub:
IEDriverServer causes memory leaks in iexplore.exe #3861
The thing is that we're testing a complex scenarios on a very heavy application and when IE consumes more than approx 1.5 GBytes it just hangs.
And moreover even running the simple driver.findElement(By) scenario during the number of hours leads to IE hanging without releasing the memory.
I also found this SO question:
Multiple tests on the same IEdriver instance - memory issues
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416971%2fselenium-ie11-failed-to-open-http-localhost4200%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Found the reason when looking at Process Explorer.

I also found this open issue in GitHub:
IEDriverServer causes memory leaks in iexplore.exe #3861
The thing is that we're testing a complex scenarios on a very heavy application and when IE consumes more than approx 1.5 GBytes it just hangs.
And moreover even running the simple driver.findElement(By) scenario during the number of hours leads to IE hanging without releasing the memory.
I also found this SO question:
Multiple tests on the same IEdriver instance - memory issues
add a comment |
Found the reason when looking at Process Explorer.

I also found this open issue in GitHub:
IEDriverServer causes memory leaks in iexplore.exe #3861
The thing is that we're testing a complex scenarios on a very heavy application and when IE consumes more than approx 1.5 GBytes it just hangs.
And moreover even running the simple driver.findElement(By) scenario during the number of hours leads to IE hanging without releasing the memory.
I also found this SO question:
Multiple tests on the same IEdriver instance - memory issues
add a comment |
Found the reason when looking at Process Explorer.

I also found this open issue in GitHub:
IEDriverServer causes memory leaks in iexplore.exe #3861
The thing is that we're testing a complex scenarios on a very heavy application and when IE consumes more than approx 1.5 GBytes it just hangs.
And moreover even running the simple driver.findElement(By) scenario during the number of hours leads to IE hanging without releasing the memory.
I also found this SO question:
Multiple tests on the same IEdriver instance - memory issues
Found the reason when looking at Process Explorer.

I also found this open issue in GitHub:
IEDriverServer causes memory leaks in iexplore.exe #3861
The thing is that we're testing a complex scenarios on a very heavy application and when IE consumes more than approx 1.5 GBytes it just hangs.
And moreover even running the simple driver.findElement(By) scenario during the number of hours leads to IE hanging without releasing the memory.
I also found this SO question:
Multiple tests on the same IEdriver instance - memory issues
answered Nov 26 '18 at 9:47
sashoalmsashoalm
30.6k68253531
30.6k68253531
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416971%2fselenium-ie11-failed-to-open-http-localhost4200%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can try to make a test in compatibility mode. You can also try to enable the option 'Always refresh from server' in Network tab in developer tools. These are the things you can try to check from IE side. Further you can check that whether server breaks the connection or not.
– Deepak-MSFT
Nov 22 '18 at 5:17