> 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/hidemium-4/iv.-tu-dong-hoa-automation-and-ai/automation-foundation-automation-co-ban/data/get-text.md).

# 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="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FWvjvEiVRu9mL1sxrxLhw%2Fimage.png?alt=media&amp;token=a488c140-e14e-460a-a38f-ed7763be6c40" 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" %}
