# Click Element Block

<figure><img src="/files/HOxtUGJBtE7pDquXohAQ" alt=""><figcaption></figcaption></figure>

This block simulates a mouse click on an element, which triggers an event associated with this click.

Please note:

This block cannot function without an active tab. For this reason, use the Active Tab block or the New Tab block before using this one.

<figure><img src="/files/7VO4Gh9qe4NZYNww26AE" alt=""><figcaption></figcaption></figure>

Below is a screenshot of the block settings:

<figure><img src="/files/fZ4jzqXsyvzuUQwDNw8c" alt=""><figcaption></figcaption></figure>

The block supports two modes: CSS Selector and XPath. For the block to work correctly, you need to enter the element selector in the Element selector input field. To get an element selector, you can use the Element selector tool of the Goless extension. Below is a screenshot of the extension:

<figure><img src="/files/KrEa1D2QvLKqO482Yy8y" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/udyuDYJRpkTYb7IAxCB6" alt=""><figcaption></figcaption></figure>

After opening the Element selector component on the site page, to get the selector of the html page element, you just need to click on it with the mouse. The resulting selector must be entered in the selector input field of the Click element block.

Click element Block Settings:

* **Multiple.** Multiple element selection.
* **Mark element.** The item will not be selected if it was selected earlier.
* **Wait for selector.** Wait for the selector to be received. When you select this element, you can enter the timeout of the selector.


---

# 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.goless.com/blocks/web-interaction/click-element-block.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.
