Skip to main content

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 NameDescription
Step NameName of the step. This name has to be unique in a single workflow. This field is mandatory.
Input Fields:
Screenshot TypeHolds the default value i.e. Full Screen. Screenshot Type i.e. Full Screen or Partial Screen. This field is mandatory.
X coordinateMinimum allowed value is 0. Maximum allowed value depends on the screen resolution of processing machine. X co-ordinate field value should be positive.
Y coordinateMinimum allowed value is 0. Maximum allowed value depends on the screen resolution of processing machine. Y co-ordinate field value should be positive.
WidthWidth value for the screenshot. Width field value should be positive.
HeightHeight value for the screenshot. Height field value should be positive.
File NameName of the image file without that will be created. This field is mandatory.
File ExtensionHolds 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 PathHolds the absolute path of the file where the image will be saved. This field is mandatory.
Button: BrowseOn click of this button a dialog box opens and helps to select the file path. This field is mandatory.
Add File To ResultOutput field to hold the result of the step execution.
Output Tab:
Output Fields:
ResultOutput 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.