Capture Screenshot
Description
Capture Screenshot takes a full or partial screenshot of the current screen on the machine where the workflow runs and saves it as an image file. Use this step for visual documentation, audit trails, or debugging GUI automation workflows — for example, capturing the state of an application before and after an automated action. The step lets you define specific screen coordinates for partial captures or take a full-screen image.
Limitations:
- The screen resolution of the processing machine (agent machine) must be same as the screen resolution of the machine on which the workflow is designed.
- This step will not work for the headless environment,
- This step will not produce the expected output if the screen is locked/inactive.
Note: MousePos.exe is a useful utility to locate coordinates of the current cursor position on a screen
Configurations
| Field Name | Description |
|---|---|
| Step Name | Name of the step. This name has to be unique in a single workflow. This field is mandatory. |
| Input Fields: | |
| Screenshot Type | Holds the default value i.e. Full Screen. Screenshot Type i.e. Full Screen or Partial Screen. This field is mandatory. |
| X coordinate | Minimum allowed value is 0. Maximum allowed value depends on the screen resolution of processing machine. X co-ordinate field value should be positive. |
| Y coordinate | Minimum allowed value is 0. Maximum allowed value depends on the screen resolution of processing machine. Y co-ordinate field value should be positive. |
| Width | Width value for the screenshot. Width field value should be positive. |
| Height | Height value for the screenshot. Height field value should be positive. |
| File Name | Name of the image file without that will be created. This field is mandatory. |
| File Extension | Holds the extension of the image file that will be created. Currently only bmp, png, jpg and jpeg file are supported by this plugin. This field is mandatory. |
| File Path | Holds the absolute path of the file where the image will be saved. This field is mandatory. |
| Button: Browse | On click of this button a dialog box opens and helps to select the file path. This field is mandatory. |
| Add File To Result | Output field to hold the result of the step execution. |
| Output Tab: | |
| Output Fields: | |
| Result | Output field to hold the result of the step execution. This field is mandatory. |
Note: If the capture screenshot step is part of a workflow also containing Start Browser step, then it is advisable that no browser instance is kept open on agent machine, before executing such a workflow.