> 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-web/en/when-the-test-doesnt-work/test-issues/autify-find-unintended-elements.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Unintended elements are selected

If Autify selects an unintended element, it may fail in subsequent steps (e.g., clicking on a different element takes you to an unintended page, which fails in subsequent click and assertion steps). Autify may target unintended elements in the following cases

## Autify selects the wrong element because of page changes

Even if the characteristics of an element change due to page revisions and it is no longer an exact match, Autify will track the best matching element. However, depending on the nature of the change, the wrong element may be selected. Please check the [Difference in Test Results](https://help.autify.com/nocode-web/en/autify-university/foundation/test-results/visual-diff-for-test-results.md). If there is a difference, this may be the cause of the issue. In this case, please try one of the following methods to update the element's information:

* Re-record the relevant step by clicking [Record Here](https://help.autify.com/nocode-web/en/faq/faq-create-scenario/faq-recording/what-can-i-do-with-record-here.md).
* Update the element by using the [Quick Element Update](https://help.autify.com/nocode-web/en/autify-university/foundation/test-results/quick-element-update.md) feature.

## Similar elements existed on the page

Autify searches for elements based on the information obtained during recording and successful test runs. However, if there are elements with similar information, it may recognize the wrong element as the target element. In this case, please use a [locator](https://help.autify.com/nocode-web/en/autify-university/advanced/locator-feature/add-a-locator.md).

## Unintended element selected in a table or list.

If you want to select elements as intended in a table or list, such as always selecting the element in the first row, you need to use a [locator](https://help.autify.com/nocode-web/en/autify-university/advanced/locator-feature/add-a-locator.md). For more information, see [How do I interact with the elements in a table or list the way I intended?](https://help.autify.com/nocode-web/en/faq/faq-create-scenario/what-if-i-want-to-click-on-the.md).

If none of the above solutions work, please contact support.


---

# 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-web/en/when-the-test-doesnt-work/test-issues/autify-find-unintended-elements.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.
