# Selector Parameters

Managing the internal cache and selector parameters. When using selectors to speed up the search for elements on the page, an internal cache is utilized. Information about the element is stored in the cache after it is successfully identified, and subsequently, the cache is checked first when searching for the element. If information for this selector is present in the cache, it is retrieved from there, significantly speeding up the robot's operation. However, in some cases, this cache may negatively affect the script's performance. This is often observed when cyclically processing similar elements on a single page, such as search results. In such cases, it is recommended to disable the cache using this block. If no such block is used in the project, the selector cache is enabled by default.

<table data-header-hidden><thead><tr><th width="259" valign="top"></th><th width="313" valign="top"></th></tr></thead><tbody><tr><td valign="top">Use Cache</td><td valign="top">When enabled, the main interface elements of programs (e.g., Internet Explorer, Google Chrome, Java) will be cached. In most cases, this speeds up the robot's operation, but in some programs, it may lead to errors.</td></tr><tr><td valign="top">Use Descendant Search</td><td valign="top"><p>When enabled, if the selector element is not found, an attempt will be made to find it as a descendant of the previous element.</p><p>In some programs, there are many such descendants (e.g., 1C), and it is recommended to disable this option.</p></td></tr><tr><td valign="top">Depth of Descendant Search</td><td valign="top">The depth of descendant search from the current selector element. If the selector element is not found and the "Use Descendant Search" option is enabled, the search for the selector element will be conducted as a descendant of the current element. This value indicates the depth level to which the robot should dive for the search. The larger the value, the longer the search for the selector element may take. For example, if a certain element is missing (button, label), the search may take a long time until an error occurs.</td></tr><tr><td valign="top">Single-Level Search</td><td valign="top">Switches the element search mode to single-level. Allows finding hidden interface elements.</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 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's operation.</td></tr></tbody></table>
