# 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&#x26;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="<https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FpZR14VVSHapTfIzn0QoE%2FGet%20text.txt?alt=media&token=79ad0f73-3f56-426f-a56d-149820973d85>" %}
