> 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/faq/faq-test-result/faq-screenshot/screenshot-timing-based-on-step-type.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# ステップ種類別のスクリーンショット取得タイミング

## 1. イントロダクション

このガイドは、テスト実行中にスクリーンショットが取得されるタイミングと管理に関する詳細な知見を提供し、ベストプラクティスや一般的な落とし穴について解説します。

## 2. スクリーンショットのタイミング

### 2.1 概要

スクリーンショットは、手順の記録と検証に不可欠です。取得のタイミングを正確に知ることは、実行されたアクションを反映させるために重要です。

### 2.2 手順ごとのキャプチャタイミング

**アクション中のキャプチャ:** アクションの実行中にスクリーンショットを撮ります。長押しクリックなどの方法を使用して、ターゲット要素が表示されたままになるようにします。

**アクション前のキャプチャ:** アクションが開始される前にスクリーンショットを撮り、変更前の状態を記録します.

**アクション後のキャプチャ:** ウィンドウ切り替え、移動、JSスクリプト実行 などのアクションの完了後にスクリーンショットを撮り、実行後の状態を記録します。

### 2.3 注意事項とベストプラクティス

* アクション後のスクリーンショットでは、ターゲット要素がすぐに消える場合、要素をキャプチャできないことがあります。
* 要素が見えない場合、シナリオ詳細画面のステップ名やメモ欄を使用して明確にします。
* クリックアクションでは、長押しクリックが要素をキャプチャまで表示し続けるのに役立ちます。

## 3. 一般的な問題と解決策

* **要素の消失:** 要素がアクション後すぐに消えると、スクリーンショットにキャプチャされないことがあります。説明的な名前とメモを使用してコンテキストを提供します。
* **タイミングの不一致:** スクリーンショットが実際のアクションに少し遅れることがあります。アクションの持続時間を長くすることで、この問題を緩和できます。

## 4. 例

<table data-search="false"><thead><tr><th>ステップ</th><th>スクリーンショットのタイミング</th></tr></thead><tbody><tr><td>要素をクリック</td><td>アクション中</td></tr><tr><td>ウィンドウを閉じる</td><td>アクション前</td></tr><tr><td>JSスクリプトを実行</td><td>アクション後</td></tr><tr><td>移動</td><td>アクション後</td></tr><tr><td>キープレス</td><td>アクション中</td></tr><tr><td>入力値を設定する</td><td>アクション後</td></tr><tr><td>ウィンドウを切り替える</td><td>アクション後</td></tr><tr><td>スリープ</td><td>アクション後</td></tr></tbody></table>

## 5. 結論

効果的なスクリーンショットのタイミングは、アクションの正確な記録と検証にとって重要です。このドキュメントで述べられたガイドラインとベストプラクティスに従うことで、実行された手順をスクリーンショット上で効果的に表現できるようになります。


---

# 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/faq/faq-test-result/faq-screenshot/screenshot-timing-based-on-step-type.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.
