Get Popup Text
This is a pre-built Action located under the @BrowserPopUp Element. The functionality of this Action in Avo Assure is to fetch the text from a browser popup. The result is stored in a dynamic variable for further use during test execution.
Syntax
Input Value: N/A
N/A
Not Applicable
Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)
<Dynamic Variable>
(Required)
This dynamic variable stores the popup text.
<Dynamic Variable>
(Optional)
This dynamic variable stores the status as True or False.
Example: Retrieving Message from a Browser Popup
In this example, we explain how to retrieve the text message displayed in a browser popup using the Get Popup Text action.
Action: Get Popup Text
Input Value: N/A
This action does not require any input value in the Input Value column. It retrieves the message displayed in the active browser popup.
Output Value: {Popup Text}
The retrieved popup message (e.g., This is a Simple Alert) is stored in this {Popup Text} dynamic variable.
If a second output variable is provided, the action returns the status as True/False:
True: If the popup text is fetched successfully.
False: If the popup text is not fetched successfully.
Logical Explanation: The Get Popup Text action reads and retrieves the message from the currently displayed browser alert or confirmation popup. The fetched text is stored in the {Popup Text} variable (e.g., This is a Simple Alert).

Last updated
Was this helpful?