Start methods for Windows applications
When you add a Windows application, you define a Start method. Start methods define how Pega Robot Studio behaves when opening the application.
The StartMethod property determines how the target application is started. The following table lists and describes the available options:
Start methods
Method | Description |
Start | With this option, starting the adapter causes Robot Studio to launch and hook the application defined by the Path property. |
StartAndWait | With this option, which only applies to the Windows adapter,
starting the adapter causes Robot Studio to
launch the application identified in the Path
property and then waits until the application in the
TargetPath is launched. When the
TargetPath application runs, Robot Studio then hooks the TargetPath
application. Robot Studio does not hook the Path application; therefore, you cannot interrogate or automate the Path application. |
MonitorAll | With this option, after the adapter starts, Robot Studio waits until the Path application or specified browser runs and then hooks the application. In this case, the Path application must be launched independently (for example, from an external application or manually) after the adapter starts. Once the application is launched, Robot Studio hooks the application and the interrogated controls are available to the project automations or event monitoring. The adapter must be started before the Path application is launched to hook the application. When using this StartMethod, you can omit the full path when specifying the application executable in the Path property and simply enter the executable file name. You must set the project's TargetEnvironment to Driver with this StartMethod. In cases where multiple instances of the Path application can be run, set the UseKeys property to True for the application. This allows Robot Studio to correctly identify and interact with the various instances of the application. |
- Use case: creating a simple Windows automation using Quick Start
This example uses the Quick Start feature to build an automation that logs in to a Windows application, leveraging the Intelligent Recording feature to record the steps of the automation.
Previous topic Use case: creating a simple Windows automation using Quick Start Next topic Opening an existing project