# 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:

![](/files/BF1TZjb3Fq34TfFFj92T)

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 %}


---

# 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://kaliostest-nouvelle-version.gitbook.io/web-actions-list/mouse/clickabovebytext.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.
