Tab in Microsoft Edge destroys the DOM

2 posts, 0 answers
  1. Hendrik
    Hendrik avatar
    1 posts
    Member since:
    Jan 2018

    Posted 23 Mar Link to this post

    Hey there,

    the application I am testing opens a new tab when the user clicks a button and in the case under test immediately closes this tab to show an inline dialog. Our test simulates the button click and waits for the dialog to appear. The test works fine in all browsers except for Microsoft Edge. In Edge, after the new tab has been opened and closed, the DOM tree reference in ActiveBrowser is null. The TestFramework Exception suggests to call RefreshDomTree() or NavigateTo() but RefreshDomTree() does have no effect and I cannot use NavigateTo() because this will cause a page refresh and the dialog is gone. Is this a know issue with Edge? Is there another way to get the DOM tree back without having to refresh the page?

    Thanks for your help!

    Hendrik

  2. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    308 posts

    Posted 27 Mar Link to this post

    Hi Hendrik,

    There was a similar problem but it is fixed at this point. 

    If the pop-up window is closing via a button I suggest trying to enable ClosesBrowser property of the click step and disable close pop-up step. Please find attached a screenshot for further reference. 

    You may try to introduce few seconds execution delay before close pop-up step if decide to use this step. 

    If this does not resolve the problem would you provide further details on the Windows/Edge/Web driver and Test Studio versions you are using to reproduce the problem? What is the exception message you got when the test fails?

    If possible please provide a sample test project with steps you are using when reproducing the problem.

    Best Regards,
    Nikolay Petrov
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top