Use the Click method for Universal App Connector

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 2 minutes de lecture
  • Use the Click method to perform a click action on an element.

    Avant de commencer

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

    Role required: None

    Pourquoi et quand exécuter cette tâche

    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.

    Procédure

    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 Click method appears in the Object Explorer pane.
    3. Drag the Click method to the Design surface.
    4. Double-click the Click 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.
      Remarque :
      • 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 (Click to 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 Element 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
      Remarque :
      You must add at least one element to continue.

      For example, select the button element by selecting the Login button.The Badge Tool application shows Capture element dialog that captures the Login button in UIA mode. This button 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.
      Remarque :
      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 Click method and select either Run From Here or Run This.
      In this scenario, the captured element "Login" button is clicked and the next screen appears.The captured element "Login" button is clicked and the next screen appears.
    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.