Forum Discussion
ArtemS
Alumni
15 years agoGreetings,
Well, forcing IE to a single iexplore.exe process is not required once we need to close a pop-up window.
When a pop-up window is invoked, a new instance of the IEFrame object is created in the master iexplore.exe process (the one having index = 1). So we can use the IEFrame.Close() method to close it. To identify which instance of IEFrame corresponds to the pop-up window, we can use the combination of the following two attributes: WndClass="IEFrame" and WndCaption="The_Caption", where The_Caption is the actual caption of the pop-up window.
Attached is a project that shows how this can be performed with keyword tests and scripts.
Well, forcing IE to a single iexplore.exe process is not required once we need to close a pop-up window.
When a pop-up window is invoked, a new instance of the IEFrame object is created in the master iexplore.exe process (the one having index = 1). So we can use the IEFrame.Close() method to close it. To identify which instance of IEFrame corresponds to the pop-up window, we can use the combination of the following two attributes: WndClass="IEFrame" and WndCaption="The_Caption", where The_Caption is the actual caption of the pop-up window.
Attached is a project that shows how this can be performed with keyword tests and scripts.