CloseSubWindow
open /run/com.vaadin.tests.components.window.CloseSubWindow?restartApplication
waitForVaadin
click vaadin=runcomvaadintestscomponentswindowCloseSubWindow::PID_Sopennative
click vaadin=runcomvaadintestscomponentswindowCloseSubWindow::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]
assertText vaadin=runcomvaadintestscomponentswindowCloseSubWindow::PID_SLog/ChildComponentContainer[0]/VLabel[0] 1. Window 'Sub-window' closed
click vaadin=runcomvaadintestscomponentswindowCloseSubWindow::PID_Sopennative
click vaadin=runcomvaadintestscomponentswindowCloseSubWindow::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]
assertText vaadin=runcomvaadintestscomponentswindowCloseSubWindow::PID_SLog/ChildComponentContainer[0]/VLabel[0] 2. Window 'Sub-window' closed
click vaadin=runcomvaadintestscomponentswindowCloseSubWindow::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0]
waitForPopUp nativewindow 30000
selectWindow name=nativewindow
close
selectWindow title=com.vaadin.tests.components.window.CloseSubWindow
click vaadin=runcomvaadintestscomponentswindowCloseSubWindow::PID_Spoll/domChild[0]/domChild[0]
assertText vaadin=runcomvaadintestscomponentswindowCloseSubWindow::PID_SLog/ChildComponentContainer[0]/VLabel[0] 3. Browser window closed