# Click on Text

Clicking the mouse on the text in the specified application element. This block can be used when it is not possible to accurately identify the required element and the area containing it is determined.

<table data-header-hidden><thead><tr><th width="222" valign="top"></th><th width="324" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top">[Selector] User interface element identifier</td></tr><tr><td valign="top">Text</td><td valign="top">[Text] The text that needs to be found. Wildcard usage is possible.</td></tr><tr><td valign="top">Match Index</td><td valign="top">[Number] If the searched text is found multiple times, you can specify the ordinal number of the match to be used for the click. Numbering starts from 1.</td></tr><tr><td valign="top">Action</td><td valign="top">Select action: left click, double click, right click, hover.</td></tr><tr><td valign="top">Modifier Key</td><td valign="top"><p>[Text] Specifies the modifier key that will be held down during the click. Possible values: "CTRL", "SHIFT", "ALT", "SPACE".</p><p>You can specify a key combination, for example: "CTRL+SHIFT".</p></td></tr><tr><td valign="top">X Offset</td><td valign="top">[Number] Relative click offset on the X coordinate from the top left corner of the element. If no value is specified (the property is empty), the center of the element will be used as the click point.</td></tr><tr><td valign="top">Y Offset</td><td valign="top">[Number] Relative click offset on the Y coordinate from the top left corner of the element. If no value is specified (the property is empty), the center of the element will be used as the click point.</td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] A variable that stores the process identifier. 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.</p><p>When working with browsers, the process ID additionally indicates the specific 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. The process ID can be obtained, for example, using the Launch Application or Get Process blocks.</p></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] Maximum time to search for text 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" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value of 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 of 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>

## The operation of this block is demonstrated in the video:

{% embed url="<https://sherparpa.ru/ucontent/?fVQ8>" %}
