# clickabovebytext

This action will click on a clickable element based on a text elsewhere in the screen. This can be usefull for actions in table for example. Here we click on on element above a text visible on screen.&#x20;

| Variable  | Value | Description                                                                                                                   |
| --------- | ----- | ----------------------------------------------------------------------------------------------------------------------------- |
| Property  | text  | text display on the screen or text1\|text2 with text1 display on the screen and text2 for the text of the object (ex:button). |
| Parameter | empty |                                                                                                                               |
|           |       |                                                                                                                               |

If just one text in the property, click on the first clickable element above the text.

If two parameters, we search for text1 and click on the first clickable element above text1 and containing text2.

If we use <http://automationpractice.com/index.php>, we have an image above a text we can click on:

![](https://625378592-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX6qPd3r7cSkNl3PrlgVA%2Fuploads%2FXFy8pe5SUbTgS5oI323U%2Fimage.png?alt=media\&token=283b0418-5e69-4dcf-a551-35e119a6aebf)

If we use clickabovebytext with property='Blouse', it will click on blouse image.

{% hint style="info" %}
We can also use context keyword to manage duplicated text. For example, if we use the action clickabovebytext with Property="Printed Dress|context=$26.00" it will click on the image above Printed Dress in the context of "$26.00" .&#x20;
{% endhint %}
