Get element text

This is a pre-built Action located under the captured element from the Desktop Application. The functionality of this Action in Avo Assure is to fetch the text of the element captured from the Application Under Test (AUT). The extracted value is stored in the given 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 extracted text from 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 are explaining how to retrieve the visible text from a captured UI element using the Get element text action.

  • Action: Get element text

  • Input Value: N/A

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

  • Output Value: {Get Text}

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

    • If a second output variable is defined, it stores the action status with the following possible values:

      • True: If the text is retrieved successfully.

      • False: If the text is not retrieved successfully.

  • Logical Explanation: The Get element text 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?