Get UI Object Text

Retrieve the text of an object in the active application and place it into a new or existing variable.

  1. Enter the name of the variable into which you would like to place the text of the selected object

  2. Select the object whose text you would like to copy.

    After selecting the object, the following buttons become available (when relevant):

    • Click an object

    • Expand selection

    • Narrow selection

    • Highlight selected object

    • Use right click for selection

    • Tree view

      An example with Tree View selected:

      See UI Automation Selector Syntax

  3. Instruct the wizard how to handle any errors encountered. Read more about error handling.