Get Text of Element

This is a pre-built Action located under the captured element. The functionality of this Action in Avo Assure is to fetch the text of the specified captured element from the Application Under Test (AUT). The result is stored in a dynamic variable for further use during test execution.

Syntax

Input Value: N/A

Argument
Description

N/A

Not Applicable

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the fetched text from the element.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Fetching Visible Text from a UI Element

In this example, we explain how to retrieve the visible text from a captured UI element using the Get Text of Element action.

  • Action: Get Text of Element

  • Input Value: N/A

    • This action does not require any input value. It extracts the visible text from the specified element on the application.

  • Output Value: {Get Text}

    • The retrieve text (e.g., Click the button!) is stores in this {Get Text} dynamic variable.

    • If a second output variable is provided, the action returns the status as True or False:

      • True: If the text is retrieved successfully.

      • False: If the text is not retrieved successfully.

  • Logical Explanation: The Get Text of Element action does not require any input value. It identifies the target element and fetches its visible text content. The text (Click the button!) is stored in the {Get Text} variable.

Last updated

Was this helpful?