# Check for Element Presence

Checks for the presence of a specified element. If the element is found, the script execution will continue through the "Yes" exit; otherwise, it will continue through the "No" exit.

<table data-header-hidden><thead><tr><th width="200.49993896484375" valign="top"></th><th width="286.75" valign="top"></th></tr></thead><tbody><tr><td valign="top">Connection Link</td><td valign="top"><p>[Link] SAP connection object.</p><p>The variable name in this property must match the variable name in the "Connection Link" property of the "Create Connection" or "Join" blocks from the SAP group.</p></td></tr><tr><td valign="top">Element ID</td><td valign="top"><p>[Text] Identifier of the element. The value must be written according to SAP GUI rules.</p><p>For example: <code>"/app/con[0]/ses[0]/wnd[0]/tbar[0]/btn[15]"</code></p></td></tr><tr><td valign="top">Timeout</td><td valign="top">[Number] The maximum timeout for the specified element in seconds.</td></tr><tr><td valign="top">Result</td><td valign="top">[Boolean] The result of the element check. If the element is found, the value will be <code>$true</code>; otherwise, <code>$false</code>.</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" - 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">Exit Direction</td><td valign="top"><p>Select the exit direction from the block in case of an error.</p><p>Possible values:</p><ul><li>"Default" - default;</li><li>"Right" - to the right;</li><li>"Bottom" - down.</li></ul><p>This property allows you to determine the exit direction in case of errors for blocks that do not contain the "If Error" connector (for example, the "Condition" block).</p><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.</p><p>Possible values:</p><ul><li>"Default" - 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 block execution.</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/sap-sap-automation/proverit-nalichie-elementa-sapelementexists.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.
