Core Activities
Parent page: PAW Robot/Studio › Activities Module: PAWRobot (core) Scope: Control flow, UI interaction, data, network
Overview
PAW Robot/Studio core activities are the basic activities used to control automation workflows, interact with applications and process data.
With these activities you can build conditional operations, run repeated steps using loops, invoke sub-workflows, interact with user interface elements and exchange data over JSON or HTTP.
Core activities can be grouped into the following categories:
Control Flow: Condition, loop, retry on error and sub-workflow invocation operations.
UI Interaction: Clicking, typing text, reading values and keyboard operations on on-screen elements.
Clipboard Operations: Reading, writing and clearing clipboard data.
Data and Network: Data exchange through JSON conversions and HTTP requests.
Each activity should be chosen according to the needs of the automation and the expected behavior of the workflow.
Control Flow (Statements)
Activity | Description |
|---|---|
Adds the specified item to a collection. | |
Assigns a value to a variable or target expression. | |
Clears all items in the collection. | |
Assigns values to more than one variable or target expression in a single operation. | |
Pauses the execution of the workflow for the specified duration. | |
Checks whether the specified item exists in the collection. | |
Represents the final state in a state machine and indicates that the state machine has completed. | |
Evaluates a condition and directs the flow to the appropriate branch. | |
Directs the flow to one of several possible branches based on the value of an expression. | |
Lets you design the steps of the workflow and the transitions between them as a flowchart. | |
Evaluates a condition and runs one of two branches depending on the result. | |
Calls a method on the specified object or type. | |
Used to prevent the operations within the scope from being interrupted by persistence. | |
Runs multiple branches in parallel. | |
Saves the current state of the workflow through the supported persistence mechanism. | |
Runs the branch whose trigger occurs among the defined triggers. | |
Removes the specified item from the collection. | |
Rethrows a caught exception while preserving the current exception context. | |
Creates a workflow block in which activities run in the specified order. | |
Defines a state within a state machine and the operations belonging to that state. | |
Lets you design a workflow through states and the transitions between them. | |
Runs the matching option among the defined options based on the value of an expression. | |
Terminates the execution of the workflow. | |
Creates and throws the specified error or exception. | |
Throws a new exception of the selected exception type with the specified message. | |
Runs a group of operations within a transaction scope. | |
Runs operations that may cause errors and lets errors that occur be handled in Catch blocks. | |
Writes the specified text to the output or console area. |
UI Interaction Activities
UI interaction activities let the automation perform operations through the user interface and read on-screen data.
Activity | Description |
|---|---|
Clicks the defined interface element. Additional inputs such as the button and an offset that determines the click position can be used. | |
Enters text into the specified interface element. Timeout settings can be used for finding the element and completing the operation. | |
Types the specified text into the active element. Make sure the correct element is active before the operation. | |
Brings the specified interface element into focus. | |
Checks a checkable interface element such as a checkbox. | |
Selects an item in a list or similar selection field by the specified key, value or index. | |
Selects several items in a list field that allows multiple selection, by the specified keys, values or indexes; optionally adds them to the current selection. | |
Selects the menu item with the specified value in a menu, opening the submenus on its path. | |
Returns the index, key or value of the item selected in a selection field. | |
Gets the available items in a selection field and produces a result that can be used in later steps. | |
Reads the value of the specified interface element. | |
Obtains a value by reading on-screen text with OCR (Optical Character Recognition). | |
Reads the data in a table in the interface and produces a result in DataTable format. | |
Visually highlights the specified interface element. Can be used during testing and debugging to check the element's position. | |
Moves the specified interface element to the position defined by X and Y coordinates. | |
Moves the mouse pointer to the specified X and Y coordinates. | |
Sends the specified keyboard keys and key modifiers. | |
Takes a screenshot of the screen and produces output of type Image. |
Clipboard Activities
Clipboard activities let you manage the clipboard data used in copy and paste operations between applications.
Activity | Description |
|---|---|
Reads the text on the clipboard and returns it as output for use in later steps. | |
Writes the specified text to the clipboard. It can then be transferred to another application with a paste operation. | |
Clears the current contents of the clipboard. |
Warning: Because clipboard contents can also be used by other applications, the order of clipboard operations and the need to clear the clipboard should be considered, especially when working with sensitive data.
Data and Network Activities
Data and network activities let you convert structured data to JSON format, transfer JSON data back into objects and communicate with external services through HTTP requests.
Activity | Description |
|---|---|
Converts an object to JSON text. Can be used when data needs to be sent in API requests or stored as text. | |
Converts text in JSON format to a suitable object. Makes it easier to process responses received from services. | |
Creates and sends an HTTP request according to the specified configuration. Can be used in scenarios such as exchanging data with REST API services. |
Warning: When using APIs, authentication details, request headers, HTTP status codes and error responses should be checked. Sensitive information should not be written directly into the workflow as fixed text.
Example usage scenario
A request is sent to a service with HTTP Request Creator.
The JSON response returned by the service is received.
The response is converted into a processable object with Deserialize Json.
The resulting data is evaluated with control flow or data processing activities.
Example Scenario: Checking a Button
In this scenario, the automation checks whether the specified button exists in the interface. If the button exists, it performs the click and type operations; if not, it runs an appropriate notification or log step.
Steps:
The relevant interface element is defined.
Whether the element exists is evaluated with the If activity.
If the condition is met, the Click Element and Type Into activities run.
If the condition is not met, an error or information record is created in the Else branch.
This structure creates a condition-based flow instead of trying to act directly on an element that does not exist in the interface.