HTML Popups are automatically detected by Test Studio. It displays the popup window with its own Recording Toolbar. Test Studio automatically includes test steps for connecting to, recording+ steps inside the new browser window, and finally closing the HTML Popup.
The sequence is typically like the test steps shown below.
- The popup window is connected.
- Actions and/or verifications are performed inside the new browser window.
- The popup window is closed.
The properties for the Connect to pop-up window step (test step 3) are shown below:
There's a limitation in Test Studio in that it cannot tell the difference between the parent window and the popup window when the URL is the same. Test Studio is will randomly connect to the right or wrong one and you cannot control it.
If your web application typically loads popups with URLs that contain a dynamic portion, such as a search query, you will need to alter the Connect to pop-up window step properties.