"CLOSE_POPUP" Command

Description: This command closes a popup window (window that you can drag or make a tab out of) identified by text, handler index, last tab or closes all popups and keeps the main page open.

Usage Scenario: Suppose we want to open our Reference app on one window and Subject7’s website on another window and then close Subject7’s website using the text “Subject7”.

Procedure: Define a step that navigates to our Reference app and another step that opens Subject7’s website in another window. You can use Execute_Javascript with code: “window.open("https://www.subject-7.com");“. Once finished, define a step that closes the popup with text “Subject7”. Your step will look like this:

image-20240527-162937.png

 

 

 

Related pages