Completed
Last Updated: 19 Aug 2013 08:16 by Silvio
ADMIN
Plamen
Created on: 13 May 2013 11:55
Type: Bug Report
1
When clicking the Close button on a popup in our application, it also closes the main window
When clicking the close-button on a popup in our application, the server sends a new site which contains only the javascript which should close the popup. The framework seems not to like this method of closing a popup and closes the main window too.

The workaround is to remove the popup from the browsers collection after the Click:
closeBtn.Click(true); 
manager.RemoveBrowser(popup.ClientId);

To reproduce:
Sample project is attached to the internal bug description.
3 comments
Silvio
Posted on: 19 Aug 2013 08:16
Yes, it seems like this was fixed in new version.
ADMIN
Pavel
Posted on: 15 Aug 2013 11:38
The provided test works as expected. It first closes the popup and after that clicks on the checkboxes. Finally it closes the second window. If you remove the second closeBtn.Click(true); call, the main window is closed only after the test finishes.
Silvio
Posted on: 03 Jun 2013 08:56
This issue also occurs when calling browser.Close on the popup instead of clicking the close button.