Take a Screenshot#
The block allows you to take a screenshot of an element specified by a selector. If no selector is specified, the block will take a screenshot of the entire screen.
| Selector | [Selector] The identifier of the user interface element for which the screenshot needs to be taken. |
| Process ID | [Link] A variable that stores the Process ID. Indicates which application needs to be worked with. If the specified application is minimized or its window is covered by other windows, it will be brought to the foreground. When working with browsers, the Process ID additionally specifies the particular browser tab that the block should work with. If the property is left empty, or if the Process ID variable was not previously assigned at the time of launching the application or opening the browser, the application and browser tab will be determined from the contents of the corresponding selector line. The Process ID can be obtained, for example, using the "Launch Application" or "Get Process" blocks. |
| File Name | [Text] The name and path to the file where the screenshot will be saved. You can enter the full file name including the path. |
| Delay Before | [Number] Delay in seconds before executing the block. |
| Delay After | [Number] Delay in seconds after executing the block. |
| Timeout | [Number] The maximum wait time for the element to appear in seconds. |
| Screenshot File | [Text] Returns the full path to the created screenshot file. |
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Message Level | Select the message level that the blocks will output during operation. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block. |