# 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.

<table data-header-hidden><thead><tr><th width="294.5333251953125" valign="top"></th><th width="320.21673583984375" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top">[Selector] The identifier of the user interface element for which the screenshot needs to be taken.</td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] A variable that stores the Process ID. Indicates which application needs to be worked with.</p><p>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.</p><p>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.</p><p>The Process ID can be obtained, for example, using the "Launch Application" or "Get Process" blocks.</p></td></tr><tr><td valign="top">File Name</td><td valign="top">[Text] The name and path to the file where the screenshot will be saved. You can enter the full file name including the path.</td></tr><tr><td valign="top">Delay Before</td><td valign="top">[Number] Delay in seconds before executing the block.</td></tr><tr><td valign="top">Delay After</td><td valign="top">[Number] Delay in seconds after executing the block.</td></tr><tr><td valign="top">Timeout</td><td valign="top">[Number] The maximum wait time for the element to appear in seconds.</td></tr><tr><td valign="top">Screenshot File</td><td valign="top">[Text] Returns the full path to the created screenshot file.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/izobrazheniya/sdelat-skrinshot-makescreenshot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
