UiPath Activities

The UiPath Activities Guide

Automate Application Runtime

(not really sure about the title name)

The example below explains how to open, run, and close an application. It presents activities such as Double Click, Wait Element Vanish, or Set Clipping Region. You can find these activities in the UiPath.UIAutomation.Activities package.

This is how the automation process can be built:

  1. Open Studio and create a new Process.

Note:

This example requires a window application inside the project folder. You can use the one provided by us in the downloadable example.

  1. Drag a Sequence container in the Workflow Designer.
    • Create the following variable:
Variable Name
Variable Type
Default Value

app

UiPath.Core.Window

-

  1. Drag an Open Application activity inside the Sequence container.
    • Inside the activity, click the Indicate on screen option. The GIF below shows all the steps you need to follow:
      1
    • In the Properties panel, add the variable app in the ApplicationWindow field.
  2. Select the Do container present inside the Open Application activity.
    • Create the following variables:
Variable Name
Variable Type
Default value

element

UiPath.Core.UiElement

-

region

UiPath.Core.Region

-

  1. Place a Highlight activity inside the Do container.
    • Inside the activity, click the Indicate element inside window option. The GIF below shows all the steps you need to follow:
      2
    • In the Properties panel, select the value Red from the Color drop-down list.
    • Add the value 1200 in the HighlightTime field.
  2. Drag a Double Click activity below the Highlight activity.
    • Inside the activity, click the Indicate element inside window option. The GIF below shows all the steps you need to follow:
      2
  3. Place a Type Into activity below the Double Click activity.
    • Inside the activity, click the Indicate element inside window option. The GIF below shows all the steps you need to follow:
      2
    • In the Properties panel, add the value "32312" in the Text field.
    • Select the check box for the SendWindowMessages field. This sends a message to the target application.
  4. Place a Find Element activity below the Type Into activity.
    • Inside the activity, click the Indicate element inside window option. The GIF below shows all the steps you need to follow:
      3
    • In the Properties panel, add the variable element in the FoundElement field.
  5. Place a Set Clipping Region activity below the Find Element activity.
    • In the Properties panel, select the RECTANGLE option from the Direction drop-down list.
    • Add the variable element in the Element field.
    • Add the values for the desired options in the Size drop-down. For this example, the used values are 100 for Left, 50 for Top, 150 for Right, and 150 for Bottom.
  6. Drag a Click activity underneath the Set Clipping Region activity.
    • Inside the activity, click the Indicate on screen option. The GIF below shows all the steps you need to follow:
      4
  7. Drag a Click activity underneath the Open Application activity.
    • Inside the activity, click the Indicate on screen option. The GIF below shows all the steps you need to follow:
      5
  8. Drag a Minimize activity below the Click activity.
    • In the Properties panel, add the variable app in the Window field.
  9. Place a Wait Element Vanish activity below the Minimize activity.
    • Inside the activity, click the Indicate on screen option. The GIF below shows all the steps you need to follow:
      6
    • In the Properties panel, select the check box for the WaitNotActive option, determining the activity to be executed only after the specified UI element is no longer active.
  10. Drag a Message Box activity below the Wait Element Vanish activity.
    • In the Properties panel, add the expression "ExpenseIt main window is not visible anymore." in the Text field.
    • Select the check box for the TopMost option. This brings the message box to the foreground.
  11. Drag a Click activity underneath the Message Box activity.
    • Inside the activity, click the Indicate on screen option. The GIF below shows all the steps you need to follow:
      7
    • Select the check box for the SimulateClick option for simulating a click on the screen.
  12. Drag a Click activity underneath the Click activity.
    • Inside the activity, click the Indicate on screen option. The GIF below shows all the steps you need to follow:
      8
    • In the Properties panel, select the check box for the SimulateClick option for simulating a click on the screen.
  13. Run the process. The provided application is opened, the number of employees is altered, a report is generated, and in the end, all application's windows are closed.

Updated 2 months ago


Automate Application Runtime


(not really sure about the title name)

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.