> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/swipe-to-element.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Swipe to Element

{% hint style="warning" %}
This feature will be rolled out gradually to customers. Contact support if you’d like to use it.
{% endhint %}

## Overview

With the Swipe to Element function, you can reach the target element reliably. This function swipes to a specified element, so the test will not fail even if the amount of swiping required to reach the element changes.

Also, with normal swipe steps, the number of steps that's recorded will be the number of swipes required to display the target element. With Swipe to Element, you can swipe based on the element's appearance, so it can be expressed in a single step.

In the example below, if you swipe until the "Sunflower" image is displayed using normal swipe steps, it would take four swipes (four steps).

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-098a5edc17e8e4c2842660811c62a7082deca9f1%2Fswipe_to_element_en_only_swipe.png?alt=media)

If you use *Swipe to Element*, you can do this with one step and specify a feature (Sunflower).

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-983923124194f2a4f7356802ff34e0f73f829ef3%2Fswipe_to_element_en.png?alt=media)

## Swipe to Element

### Recording

1. When recording, tap the [Actions icon](https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/recording-area.md#actions) in the top right of the screen and select ***\[Swipe to Element]***.
2. Swipe until the target element is displayed (you can swipe left/right as well as up/down).
3. When the entire target element is displayed on the screen, click on the target element.
4. A blue square appears. Specify the detection pattern by select an area so that all of the target element's features are covered.
5. Click the ***\[Save]*** button to save. This is saved as a Swipe to Element step.

   ![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-e0f65750105666c85e459132b455c29b00a12600%2Fscroll_to_the_element_recording.gif?alt=media)

On the Scenario Editing page, you can set the maximum number of swipes (up to 20). The screenshot of the scenario shows the screen *after* swiping is complete. On the other hand, with normal swipe steps, the screenshot shows the screen *before* swiping.

### Checking the Test Results

On the Test Result Details page, you can check the details of the actions before the element was displayed.

To see the screens up to when the target element was displayed, click the arrow on the right side of the test result screenshot for the target step.

If the step fails to find the element, you can check if the element was not detected or if it didn't exist.

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-ae8e729e5e0fe0b2962e4c768ce65e4e3d897a9b%2Fen_swipe_to_element_test_result.gif?alt=media)

The [detection pattern](https://help.autify.com/nocode-mobile/en/troubleshooting/tips/tips-to-stabilize-element-selection-image-recognition.md) can be adjusted using Quick Element Update. For information on how to use Quick Element Update, please see [this article](https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/test-execution/quick-element-update.md).

### Swiping

You can swipe on the screen without using Swipe to Element. When you swipe the screen during recording, the number of steps recorded will be the same as the number of times you swiped. However, if the aim is to display the target element, we recommend using Swipe to Element.

### Notes

During test runs, Autify will repeat the first swipe you made when creating the step. Swiping in the wrong direction may cause the test to fail. If the swipe direction is wrong or the amount of swiping is not appropriate, please re-record the step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-mobile/en/using-autify-nocode-mobile/scenario-creation-and-maintenance/swipe-to-element.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
