> 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/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).

# 意図しない要素が選択される

Autifyが意図しない要素を選択してしまった場合は、その後のステップで失敗することが考えられます(例：別の要素をクリックしたことにより、意図しないページに遷移してしまい、後続のクリックやアサーションステップで失敗する)。Autifyでは、以下のようなケースで意図しない要素を対象としてしまうことがあります。

## ページの変更がありAutifyが要素に追従できなかった

Autifyはページの改修などに伴い、要素の特徴が前回のテスト実行時と完全には一致しなくなっても、最も一致度の高い要素に追従します。しかし、変更の内容によっては誤った要素を選択してしまうことがあります。[テスト結果の差分](https://help.autify.com/nocode-web/autify-university/foundation/test-results/visual-diff-for-test-results.md)を確認し差分がある場合は、この原因の可能性があります。

この場合は以下のいずれかの方法で要素の情報を更新することで、テストが成功する可能性があります。

* [クイック要素更新](https://help.autify.com/nocode-web/autify-university/foundation/test-results/quick-element-update.md)で、要素を更新する。
* [ここにレコーディング](https://help.autify.com/nocode-web/faq/faq-create-scenario/faq-recording/what-can-i-do-with-record-here.md)で、対象のステップを再レコーディングする。

## ページに似ている要素が存在していた

Autifyはレコーディング時及び、テスト成功時の情報を元に要素の探索を行いますが、情報が類似している要素が存在するページでは、異なる要素を選択してしまうことがあります。その場合は、[ロケータ](https://help.autify.com/nocode-web/autify-university/advanced/locator-feature/add-a-locator.md)の指定が有効です。

## テーブルやリストで意図しない要素を選択した

テーブルやリストで、必ず先頭行の要素を選択するなど意図通りの要素を選択したい場合は、[ロケータ](https://help.autify.com/nocode-web/autify-university/advanced/locator-feature/add-a-locator.md)を使用する必要があります。詳しくは [**テーブルやリストで意図した要素を操作するにはどうしたらいいですか？**](https://help.autify.com/nocode-web/faq/faq-create-scenario/what-if-i-want-to-click-on-the.md) をご覧ください。

上記のケースに当てはまらない場合や、いずれを試してもうまくいかない場合には、お気軽にサポートまでお問い合わせください。


---

# 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/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.
