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

# クイック要素更新

## クイック要素更新とは

**クイック要素更新** は、テスト結果で意図した要素が選択されていないステップがある場合、スクリーンショットから簡単に要素を再選択し、次のテスト実行時に意図した通りに選択されるようにすることができる機能です。クイック要素更新の魅力は、対象ステップを更新するために、Autifyレコーダーを起動して直前のステップまでを全て再生する必要がなく、再レコーディングせずに瞬時に更新が可能な点です。

クイック要素更新は、以下の条件で使用できます。

* iOS上のSafari以外の環境でテストを実施した場合
* 対象となる要素が存在するステップである（クリック、テキストアサーションなど）
* 選択したい対象要素がスクリーンショットに表示されている
* ステップにロケーター（CSSセレクタ）が指定されていない
* 対象要素がiframe内にない
* 対象要素がShadow DOMにない
* スタイルに`pointer-events: none;`を持たない要素

クイック要素更新は、ステップ自体が`成功`したか`失敗`したかに関係なく利用できるため、様々な場面で役立ちます。

## クイック要素更新を使用する

1. テスト結果詳細画面で、意図した対象要素が選択されていないステップを開きます。
2. **要素を更新する** をクリックします。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-b8e76659624026ddfa1ceb2d26a62e7289377952%2FScreen%20Shot%202022-11-30%20at%2014.46.39.png?alt=media)

3. スクリーンショットがインタラクティブになります。選択したい要素をクリックし、`選択した要素を更新する`をクリックします。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-0a1ee1d3c750c44eee2bb90d8d486e737f67afe9%2FScreen%20Recording%202022-11-30%20at%2015.17.43.gif?alt=media)
4. モーダルを閉じます。テスト結果上では、ステップに「更新済」と表示されているのが確認できます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-42e684b773ffe0bfbdcfbef752341474625e3173%2FScreen%20Shot%202022-11-30%20at%2014.47.17.png?alt=media)
5. シナリオを実行します。成功すると、指定した要素が選択された状態でスクリーンショットが表示されます。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-3a4254c3b98b8751746298895cc0197a0cb2e78c%2FScreen%20Shot%202022-11-30%20at%2016.03.03.png?alt=media)

{% hint style="info" %}
**注意**

* クイック要素更新で要素を更新すると、シナリオの要素も更新されますが、シナリオのスクリーンショットは更新されません。
* クイック要素更新をしてからシナリオを複製した場合、更新内容は複製先のシナリオにも引き継がれます。シナリオを複製してからクイック要素更新をした場合、複製先のシナリオには引き継がれません。
* 「要素を更新する」は元に戻せません。最初に選択した要素と同じものを再び選択したい場合は、もう一度「要素を更新する」して同じ要素を再選択してください。
* ステップグループ内のステップの要素を更新した場合、そのステップグループを使用するすべてのシナリオに影響があります。
* ページ内の要素の数が多い場合、「要素を更新する」ボタンが表示されず、使えないことがあります。
  {% endhint %}


---

# 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/autify-university/foundation/test-results/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.
