# clicktext

Click on an element

| Variable  | Value | Description                                                       |
| --------- | ----- | ----------------------------------------------------------------- |
| Property  | text  | text display on the screen                                        |
| Parameter | index | index of the texte (1 for the first texte, 2 for the second, ...) |

For example, in [https://tickets.cdiscount.com/fr/resultat?ipSearch=parc+ast%C3%A9rix](https://tickets.cdiscount.com/fr/resultat?ipSearch=parc+ast%C3%A9rix) if we use the action clicktext with the Property="Réserver" and the Parameter=1 the action will search for the first button with the text Réserver.

If we use the action clicktext with the Property="Réserver|context=VOTRE RECHERCHE" and the Paramètre=1 the action will search for the first button Réserver near "VOTRE RECHERCHE".

<figure><img src="https://625378592-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6qPd3r7cSkNl3PrlgVA%2Fuploads%2FDGCYzxqTBnHdrVWahe1I%2Fimage.png?alt=media&#x26;token=52c6ac4f-f281-4517-a953-f2f13d6c4326" alt=""><figcaption></figcaption></figure>

If we use the action clicktext with the Property="Réserver|contexte= //section\[@class="results-output"]" and the Paramètre=2 the action will search for the second button in the result containor.

<figure><img src="https://625378592-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6qPd3r7cSkNl3PrlgVA%2Fuploads%2FUrc6S1K15E84SvWyTaDo%2Fimage.png?alt=media&#x26;token=5df896da-cc4e-42f6-b3d2-a292a1dae624" alt=""><figcaption></figcaption></figure>
