> 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/test-execution/quick-element-update.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Quick Element Update

## What is Quick Element Update?

If there is a step in test results where the intended element was not tapped or if the Swipe To Element step failed to find the target element, the **Quick Element Update** feature allows you to easily reselect the element from the test results page so that the correct element is tapped or swiped in the next test run.

The advantage of Quick Element Update is that you can quickly make updates without re-recording. There is no need to launch the Autify Recorder and replay all the previous steps in order to update the target step. Quick Element Update is available for Tap actions and Swipe To Element actions.

Quick Element Update can be used regardless of whether the step passed or failed, making it useful in a variety of situations.

## Using Quick Element Update

To use Quick Element Update, open the Test Result Details Page, go to the step in which the intended element was not found, and click the **Update Element** button at the lower right corner.

### 1. Update via image recognition

This is a straightforward method where you update from the screenshot.

In the test result screenshot, click on the element you want to select and click the **Update Element** button. When Autify searches for an element using image recognition, it locates elements based on the appearance of the area around the position you tapped or swiped during recording. Therefore, selecting an element or an area around it that has a distinctive appearance will ensure that the element is tapped more reliably.

See also: [image recognition tips](https://help.autify.com/nocode-mobile/en/troubleshooting/tips/tips-to-stabilize-element-selection-image-recognition.md).

### 2.Specify (update) the XPath <a href="#specify-update-the-xpath" id="specify-update-the-xpath"></a>

If Autify cannot reliably find the target element using image recognition, such as when the element's appearance changes frequently, updating the XPath may be effective. This is an option where you specify the element's XPath, which you can get from the page source. Click the **Update Element** button on the bottom right corner of the page. Then, select **Page Source** as the locator type at the top of the screen.

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

The actual page is displayed on the left side, and the Page Source is displayed on the right. Make sure that "XPath" is selected at the bottom of the page. If it is not XPath, select it from the pull-down menu.

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

For example, in the figure below for specifying the “WaterMelon” element, selecting the target element on the Page Source screen will highlight the corresponding section in the screenshot. Once selected, click **Update Selected Element**.

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

You can also specify the XPath directly, as shown below. By adding information to the XPath that is necessary to locate the target element and removing unnecessary information, you can make the element selection more reliable than using the auto-generated XPath. For more information, please see [XPath tips](https://help.autify.com/nocode-mobile/en/troubleshooting/tips/tips-to-stabilize-element-selection-xpath-and-accessibility-id.md).

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-c21879318de4ca1925f5ef39f009d32584d01c20%2Fcan-i-record-with-permission-of-camera-microphone-location_en_4.png?alt=media)

### 3. Specify (update) the Accessibility ID

Accessibility ID is a unique ID assigned to elements for the purpose of test automation. If other methods (updating via image recognition and XPath) do not improve the test's reliability, we recommend that you add Accessibility IDs in your application implementation and use them in your tests. For more information, please refer to [Accessibility ID tips](https://help.autify.com/nocode-mobile/en/troubleshooting/tips/tips-to-stabilize-element-selection-xpath-and-accessibility-id.md).

Similar to XPath, click on **Update Element via XPath** in the upper right corner of the test results screen and select **Accessibility ID** from the pull-down menu. Enter the Accessibility ID of the element you want to select and click **Update selected element**.

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

## After using Quick Element Update

Regardless of which method you use for updating the element, you will see "Step has been updated. Rerun Scenario" on the upper left corner. At this point, you can rerun the scenario by clicking "Rerun Scenario". The updated scenario will be rerun.

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-fb786db1d9f16e1705ae89e64307dd7f7b1e7398%2Fcan-i-record-with-permission-of-camera-microphone-location_en_5.png?alt=media)

Also at the bottom of the page, you will see one of the following:

* "Locator Strategy: Image Recognition" if you updated via image recognition.
* "Locator Strategy: XPath" if you updated via XPath.
* "Locator Strategy: Accessibility ID" if you updated via Accessibility ID.

The details of the XPath or Accessibility ID will not be displayed on this screen. To check the details, please reopen the update page.

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-aa4ef4c45fdbcfa2c3aff11c96c4b5c2738ab1d8%2FScreenshot%202024-05-01%20at%2016.42.26.png?alt=media)

After updating, the test result page will show “updated”, confirming that the element in the target step has been updated.

![](https://1041389054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fj0BSsfTevAGpY0hwBHT7%2Fuploads%2Fgit-blob-79f525aff41ad075f998fcb3a336e2282374a277%2FScreenshot%202024-05-01%20at%2016.45.50.png?alt=media)

## Notes

* Using Quick Element Update will update the scenario's element and screenshot.
* If you duplicate a scenario *after* using Quick Element Update, the updated content will be carried over to the duplicated scenario. If you duplicate the scenario *before* using Quick Element Update, the update will not be carried over to the duplicated scenario.
* “Update Element” cannot be undone. If you want to select the same element that was originally selected, use “Update Elements” again and reselect the element.
* If you update an element of a step within a Step Group, it will affect all scenarios that use that Step Group.


---

# 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/test-execution/quick-element-update.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.
