Use the GetValue method for Universal App Connector

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:5分
  • Use the GetValue method to retrieve a value from an element.

    始める前に

    Verify that you have open or active applications, for example, where you want to capture elements.

    Role required: None

    このタスクについて

    For information on the various additional operations that are available for the application screens and elements, see Additional options for application screens and elements in Universal App Connector.

    手順

    1. Configure Universal App Connector.
      To learn more about configuring the application screens and child elements, see Use the Universal App Connector.
    2. Under Global Objects, double-click the UniversalApplication object.
      The GetValue method appears in the Object Explorer pane.
    3. Drag the GetValue method to the Design surface.
    4. Double-click the GetValue method to configure the screens and elements in Universal App Connector.
    5. On the Configure screens and elements window, select the Choose from an open window drop-down (Choose from an open window drop-down.) and select an application screen.

      For example, select the Badge Tool application.

      Configure screens and elements window displaying list of open windows in the drop-down. The Badge Tool application is selected.
      注:
      • If no supported applications are open, the App window not found message is displayed.
      • To display newly opened application screens on the list, select the Click to refresh windows icon (Refresh windows icon.).
    6. To add the selected application screen, for example, Badge Tool application, select Add screen.
      After you do this step, you can capture the screen elements to perform actions.
      The application screen appears under the Screens and elements pane.

      Badge Tool application screen name appears under Screens and elements.

    7. To capture the elements from the screen, right-click the added screen and select Capture Element.
      The focus is set on the application screen that you had captured and the capture elements dialog appears.
    8. After selecting the required element, select the Add Element icon (Add Element icon) and select the mode as UIA, to capture the element.
      注:
      You must add at least one element to continue.

      For example, select the textbox element tagged as edit by selecting the text box next to User Name field.The Badge Tool application shows Capture element dialog that captures the username field in UIA mode. This field can be added as an element using the Add element button.

    9. In the Configure screens and elements window, right-click the captured element, choose Select and select Done.
      注:
      Select at least one element to perform the action. If none are selected, the action won't be executed. To proceed without selecting, select OK.
      Configure screens and elements window displaying the Select option on an element level.
    10. Right-click the GetValue method and select either Run From Here or Run This.
      表 : 1. Parameters of the GetValue method
      Parameter name Parameter description Port Type Data Type
      Return Retrieves a value from the captured element. Data Out String
      The input value in the captured element is retrieved and displayed in the Data Out port of the GetValue method. In this scenario, ServiceNow is retrieved.ServiceNow displayed as the output in the captured element.
    11. Double-click the required application screen or element and the Object Explorer pane is displayed listing the related methods.
      For example, if you select a Java application screen or element, the Java connector methods are displayed in Object Explorer.
      • For more information on Java connector methods, see Java connector methods.
      • For more information on Google Chrome and Microsoft Edge connector methods, see Chromium connector methods.

      • For more information on Windows connector methods, see Windows Connector methods.
      • If you have captured a web application screen and you want to execute a custom JavaScript on it, you can use the ExecuteJavascript method.