# 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".

![](https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FtQYh5eCFIkuBXv5dmejo%2FScreenshot%202022-07-08%20at%2018.01.09.png?alt=media\&token=4ad61d22-489a-4668-82ac-593e9aa75eff)

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

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F3GdygJL89Iu9TXpxm7Rm%2FScreenshot%202023-11-20%20at%2017.39.57.png?alt=media&#x26;token=b254f340-652a-43af-8919-495cd195515f" 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;

![](https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FnIejlYQvLdnFhR9TLwBW%2FScreenshot%202022-07-08%20at%2018.02.19.png?alt=media\&token=7ab46220-9cca-4d6e-a160-2f4c850b3239)

\
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="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F1WcYHue8vXCk1C782PJ6%2FScreenshot%202023-11-20%20at%2017.43.26.png?alt=media&#x26;token=bbb9c5fc-eaf4-4157-9086-a11b0bb63536" 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>" %}
