This is a migrated thread and some comments may be shown as answers.

Tab in Microsoft Edge destroys the DOM

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hendrik
Top achievements
Rank 1
Hendrik asked on 23 Mar 2018, 07:38 AM

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

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 27 Mar 2018, 11:49 AM
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
 
Tags
General Discussions
Asked by
Hendrik
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or