# Mouse Click

A mouse click on a web page element (link, button, input field, toggle, checkbox, image, etc.). A click can be performed even if the element is off-screen (scrolling the page is required). If a new browser tab or window opens after the click, you can continue working with both the old and the new tabs.

<table data-header-hidden><thead><tr><th width="250" valign="top"></th><th width="304" valign="top"></th></tr></thead><tbody><tr><td valign="top">Selector</td><td valign="top"><p>[Selector] The identifier of the browser window and web page element.</p><p>If the selector is empty, the click will be performed using the specified offsets from the current cursor position.</p></td></tr><tr><td valign="top">Action</td><td valign="top"><p>Select an action:</p><ul><li>left click,</li><li>double click,</li><li>right click,</li><li>hover.</li></ul></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.</p><p>Possible values:</p><ul><li>"CTRL",</li><li>"SHIFT",</li><li>"ALT",</li><li>"SPACE".</li></ul><p>You can specify a key combination, for example, "CTRL+SHIFT".</p></td></tr><tr><td valign="top">Process ID</td><td valign="top"><p>[Link] A variable that stores the process and tab identifier used by this block.</p><p>If the property is left empty, or if the "Process ID" variable was not previously assigned when 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 IE", "Launch Chrome", or "Attach to Browser" 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] The maximum wait time for the element to appear in seconds.</td></tr><tr><td valign="top">Autoscrolling</td><td valign="top">If selected, automatic scrolling to the element that is outside the visible part of the page will occur.</td></tr><tr><td valign="top">X Offset</td><td valign="top"><p>[Number] The relative click offset on the X coordinate from the top-left corner of the element.</p><p>If no value is specified (property is empty), the center of the element will be used as the click point.</p></td></tr><tr><td valign="top">Y Offset</td><td valign="top"><p>[Number] The relative click offset on the Y coordinate from the top-left corner of the element.</p><p>If no value is specified (property is empty), the center of the element will be used as the click point.</p></td></tr><tr><td valign="top">Wait Selector</td><td valign="top"><p>[Selector] The identifier of the user interface element.</p><p>If the selector is empty, the block will not wait for the appearance of this element.</p></td></tr><tr><td valign="top">Wait Selector Type</td><td valign="top"><p>Select the type of wait:</p><ul><li>Appear - appearance,</li><li>Disappear - disappearance.</li></ul></td></tr><tr><td valign="top">Delay Before Checking Wait Selector</td><td valign="top">[Number] Delay before checking the wait selector.</td></tr><tr><td valign="top">Timeout for Wait Selector</td><td valign="top">[Number] The maximum wait time for the element specified in the wait selector in seconds.</td></tr><tr><td valign="top">Number of Attempts for Wait Selector</td><td valign="top"><p>[Number] The number of attempts for the wait selector.</p><p>If the wait selector is not found, the block will perform a click on the main selector.</p></td></tr><tr><td valign="top">Simulate Movement</td><td valign="top">When enabled, the mouse cursor movement from the current position to the calculated point will be simulated.</td></tr><tr><td valign="top">Simulate Click</td><td valign="top">When enabled, the click will be performed using the browser's means.</td></tr><tr><td valign="top">Absolute Coordinates</td><td valign="top">If enabled, the properties "X Offset" and "Y Offset" will be used as absolute coordinates for the click. If no selector is specified, the click will be performed at these coordinates.</td></tr><tr><td valign="top">New Process ID</td><td valign="top"><p>[Link] If a new browser tab opens as a result of the block's operation, its identifier will be written to the variable specified here.</p><p>In most cases, this property and the "Process ID" property can use the same variable. Specify a different variable name if you want to continue working with the old tab in case a new tab opens, or to separate the work with the old and new tabs between different blocks of the diagram.</p></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 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>
