# Get text

You need to select an element and then the script will get the text value contained in that element and  save to the variable of your choice.\
\
Bạn cần chọn một phần tử và sau đó script sẽ lấy giá trị văn bản có trong phần tử đó và lưu vào biến bạn chọn.

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

| parameter       | illustrate                                                                                                                                               |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Select element  | <p>Enter the CSS selector of the element containing the text you want to get</p><p></p><p>Nhập CSS selector của phần tử chứa text mà bạn muốn lấy</p>    |
| Element order   | <p>Select elements based on the order they appear on the page</p><p></p><p>Chọn các thành phần dựa trên thứ tự chúng xuất hiện trên trang</p>            |
| Output variable | <p>Save the extracted elements as variables and enter the variable name</p><p></p><p>Lưu các phần tử được trích xuất dưới dạng biến và nhập tên biến</p> |

{% file src="/files/Q8jC5VoDJVOqYhTvxyZ9" %}


---

# 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.hidemium.io/automation-user-manual/data/get-text.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.
