> For the complete documentation index, see [llms.txt](https://docs.hidemium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hidemium.io/automation-user-manual/mouse/click.md).

# Click

### Giới thiệu tổng quan

True to its name, this button is used to automatically click the mouse on the element you select and put it in the "select element" box. \
\
Đúng như tên gọi của nó, nút này dùng để tự động click chuột vào phần tử bạn chọn và cho vào ô “select element”.&#x20;

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

| parameter         | illustrate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Click type        | <p>Left: left click on the selected element Right: right click on the selected element Midle: click on the element of your choice and open it in a new tab. Click down: Click and hold the mouse button at the same time. Click up: Release the mouse button at the element you select.</p><p></p><p>Left: click chuột trái vào phần tử đã chọn<br>Right: click chuột phải vào phần tử đã chọn<br>Midle: click vào phần tử bạn chọn và mở phần tử đó trong một tab mới.                                           Click down: Click đồng thời thực hiện giữ chuột Click up: Thực hiện việc thả chuột tại phần tử mà bạn chọn</p> |
| Button click type | <p>Click: click once on the selected element Double click: double click on the selected element</p><p></p><p>Click: click một lần vào phần tử đã chọn<br>Double click: click đúp vào phần tử đã chọn</p>                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Selector          | <p>Enter the CSS selector of the element you want to click on.</p><p></p><p>Nhập CSS selector của phần tử mà bạn muốn thực hiện click</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Element order     | <p>Which element of the website to choose: Fixed value: select a fixed element Random value: random a random value within a set range</p><p></p><p>Chọn thành phần nào của trang web:<br>Fixed value: chọn một phần tử cố định<br>Random value: random một giá trị ngẫu nhiên trong khoảng đã đặt</p>                                                                                                                                                                                                                                                                                                                            |
| Coordinates       | <p>Enter the x,y coordinates of the element you want to click</p><p></p><p>Nhập tọa độ x,y của phần tử bạn muốn click</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

### Hướng dẫn sử dụng

Ví dụ : Bạn cũng có thể sử dụng node click để nhấn và giữ chuột:

Khi bạn muốn nhấn và giữ chuột trong một khoảng thời gian thì bạn là như sau:

Bước 1: Khi bạn muốn click để nhấn chuột thì bạn chọn click down, và nhập selector của phần tử mà bạn muốn giữ chuột

<figure><img src="/files/2qOn2wIRCnOiW5ZeV02m" alt=""><figcaption></figcaption></figure>

Cũng tại node này bạn nhập thời gian giữ chuột, ví dụ bạn muốn giữ chuột trong 5s thì bạn nhập thời gian vào phần Sleep time trong setting.

Bước 2: Sau đó bạn sử dụng thêm 1 node click nữa để thả chuột. Ở đây bạn chọn click up để thả chuột, bạn cần nhập selector của phần tử như ở bước 1

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

Như vậy là bạn đã có thể nhấn và giữ chuột thành công.
