Take Capture Activity
The Take Capture activity saves a screenshot of a native Windows desktop application, or a specific element within it, to an image file for logging or verification purposes.
| Field | Description | Requirement |
|---|---|---|
| Application instance | The reference name of the application instance previously opened or attached. | Required |
| Reference element | An optional JSON-based selector identifying a specific element to capture. If left blank, the entire application window is captured. | Optional |
| File name | The full file path where the resulting screenshot will be saved. | Required |
Action Types & Examples
Window Capture
- Format: string (file path)
- Example Result: "C:\Robusta\screenshot.png"
Implementation Examples
Field Setup - Application instance: ${appInstance} - File name: C:\Robusta\screenshot.png
Execution Parameters - Reference element: the target control identified by the UI Automation Inspector
Technical Notes
When
Reference elementis left blank, the activity captures the full application window rather than a single control. Use this activity for audit trails or to capture evidence of an error state.