# Use Element's Text

If the element you want to address has unique text, you can address that element by that text. For example, if you want to automatically like a page on Facebook, you can make your TaskBot find and click on a button with text "Like".

Below you will see how exactly this can be done.

### **Exact Match**

#### ***text="Enter exact text of the element" (inside the double quotes)***

If you enter text inside double quotes, as shown below, your TaskBot will search for an element that matches exactly this text.&#x20;

<mark style="background-color:yellow;">text="some text"</mark>\
\
Beware: This option is case-sensitive!

For example, assume you want to start a post on LinkedIn, and the button on LinkedIn is called "Start a post".

![](/files/fbViz9k95IFTrbUZnZDO)

In this case, you can create a selector using the following syntax:&#x20;

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

### **Loose Match**

#### ***text=Enter SOME keywords of the text of the element*****&#x20;(without double quotes)**

If you enter text without double quotes, as shown below, your TaskBot will search for an element that has text that contains the keywords you provided.&#x20;

<mark style="background-color:yellow;">text=some keywords that the text contains</mark>

For example, assume you want to save the number of followers from a Facebook business page, and the information on the page contains a text that says *1,456 people follow this*.&#x20;

![](/files/OrrnTUh6i7L1hfQvuUjI)

\
As the number changes dynamically depending on the popularity of the page, you cannot use text="1,456 people follow this" (with double quotes) but you can use the keyword *people follow this*. Simply skip double quotes like shown here:&#x20;

<mark style="background-color:yellow;">text=people follow this (❌ instead of text="people follow this")</mark>

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

### Video Tutorial: Introduction to Selectors

{% embed url="<https://youtu.be/xRiai6UL7fQ?si=UJb-nB4Fjs_zhv_c>" %}

### Video Tutorial: Example of Using text="" and text=

{% embed url="<https://youtu.be/NMBCdOIj4UU>" %}


---

# 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.zerowork.io/using-zerowork/using-selectors/use-elements-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.
