# Control Element

Checks that the element with the specified selector is in one of the states.

<table data-header-hidden><thead><tr><th width="257" valign="top"></th><th width="314" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top">[Selector] Identifier of the user interface element.</td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] Variable that stores the process ID. Indicates which application to work with.</p><p>If the specified application is minimized or its window is covered by other windows, it will be brought to the foreground.</p><p>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 content 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">State</td><td valign="top"><p>The state that needs to be checked. Possible values:</p><ul><li>CheckExists - check existence;</li><li>CheckAttribute - check attribute;</li><li>Checked - check if set;</li><li>Focused - check focus.</li></ul></td></tr><tr><td valign="top">Comparison Type</td><td valign="top">Select the type of comparison.</td></tr><tr><td valign="top">Comparison Value</td><td valign="top">[Any type] The value to compare the obtained attribute value against.</td></tr><tr><td valign="top">Expected Response</td><td valign="top">[Any type] The expected value after the check. If the value obtained from the check differs from the specified one, the block will exit with an error.</td></tr><tr><td valign="top">Attribute</td><td valign="top">The name of the attribute.</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 specified element in seconds.</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">Message Level</td><td valign="top"><p>Select the message level that blocks will output during operation. Possible values:</p><ul><li>"Default" - default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs basic information;</li><li>"Detailed" - outputs detailed information.</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>
