Selenium IE11 - Failed to open http://localhost:4200












1















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:



enter image description here



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):



enter image description here



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.










share|improve this question

























  • 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
















1















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:



enter image description here



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):



enter image description here



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.










share|improve this question

























  • 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














1












1








1








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:



enter image description here



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):



enter image description here



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.










share|improve this question
















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:



enter image description here



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):



enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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












1 Answer
1






active

oldest

votes


















0














Found the reason when looking at Process Explorer.



enter image description here



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






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    Found the reason when looking at Process Explorer.



    enter image description here



    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






    share|improve this answer




























      0














      Found the reason when looking at Process Explorer.



      enter image description here



      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






      share|improve this answer


























        0












        0








        0







        Found the reason when looking at Process Explorer.



        enter image description here



        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






        share|improve this answer













        Found the reason when looking at Process Explorer.



        enter image description here



        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 26 '18 at 9:47









        sashoalmsashoalm

        30.6k68253531




        30.6k68253531
































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            這個網誌中的熱門文章

            Academy of Television Arts & Sciences

            L'Équipe

            1995 France bombings