> 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-create-scenario/faq-recording/screenshot-specifications.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# スクリーンショットが表示されなかったり、要素のフォーカスがずれたりするのはなぜですか？

Autifyでは、状況やタイミングによってスクリーンショットが想定通りに撮影できないことがあります。その原因や対処法についてこの記事で解説します。

## 1.シナリオ作成時にスクリーンショットが表示されない

レコーディング後、シナリオ上にスクリーンショットが表示されない場合は、以下のような問題が考えられます。

### 1-1. 全てのスクリーンショットが表示されない場合

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-3f7342354e8b7c8d0914904365ba4afdf9158d1a%2Fscenario_no_display%202022-08-01%2015.40.47.png?alt=media)

ChromeブラウザのAutify Recorderに関する以下設定画面にて、アクセスするサイトを制限している場合、スクリーンショットが表示されない可能性があります。 ﻿Chromeブラウザにて設定を開き、設定が **すべてのサイト** になっているかをご確認ください。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-65043b9aef79a7f0fc8f1bb33f57670453332cf5%2FAutify%20recrder%20setting.png?alt=media)

### 1-2. 特定のスクリーンショットが表示されない場合

端末のスペックが低かったり、通信状況が悪い場合、ステップを実行したタイミングでスクリーンショットを取得できないことがあります。 ブラウザ以外のアプリケーションを閉じてからレコーディングすると、改善する場合があります。

### 1-3. 元々スクリーンショットが表示されないステップ

以下のステップではスクリーンショットは表示されません。

* ページを表示する (訪問ステップ)
* ウインドウを開く
* ウインドウを閉じる
* ステップN (もしくは、「最初の」) のウインドウに切り替える
* 新しいウインドウに切り替える
* URLに移動する
* 待機ステップ
* JavaScript のコードを実行する(JSステップ)
* 件名がXXXに近いメールを開く
* アラートを閉じる
* ステップグループを実行する
* アラート内の入力フォームにテキストを入力する

## 2.シナリオ作成時にスクリーンショットは撮影されているが、実際にクリックした位置とずれている

スクリーンショットは撮影されているが、要素を囲む枠のフォーカスがずれてしまうことがあります。その場合、以下のいずれかの原因が考えられます。

### 2-1. ウインドウサイズや解像度の問題

下記のような状況でレコーディングを行うと、クリック位置等が正しく記録されず、スクリーンショットだけでなくテスト実行にも影響が及ぶ可能性があります。レコーディング時にはブラウザのウィンドウサイズを変更したり、拡大・縮小機能を利用したりしないようご注意ください。

* レコーディング時に開かれた新規ウィンドウのサイズを変更した
* レコーディング中にブラウザの拡大/縮小機能を使用した
* PCの解像度が低い (1280 x 1024 以上推奨)

### 2-2. 撮影のタイミングの仕組みに起因すること

シナリオのスクリーンショットの撮影は、実際の操作後に行われます。 そのため、操作タイミングと撮影タイミングが一致せず、想定の要素とは少しずれたスクリーンショット撮影となることがあります。 また、上記理由のため、操作後すぐに消えてしまう要素などについてもスクリーンショットの撮影が難しい場合がございます。

📝 クリック操作などの場合は、レコーディング時に長押しクリックをすることで撮影のタイミングで対象の要素が表示されたままになる確率が高くなりますので、必要に応じてお試しください。

📝 もし、対象要素がシナリオ画面のスクリーンショットで確認できない場合、操作内容がわかるようにシナリオ詳細画面のステップ名やメモにコメントを残すなどをご利用ください。

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

## 3. テスト結果のスクリーンショットで対象要素に対するフォーカスがずれている

テスト結果のスクリーンショットは、基本的※にはシナリオのスクリーンショットの撮影と同様に、実際の操作後に行われます。そのため、要素を囲む枠のフォーカスがずれてしまうことがあります。 ※要素をクリックする操作やウィンドウを閉じる操作については、操作の前にスクリーンショットが撮影されます。

## 4. テスト結果詳細画面の各ステップ左側に表示される、「レコーディング時」または「直前の成功時」のスクリーンショットが表示されない

### 4-1. 「レコーディング時」のスクリーンショットが表示されないケース

最新のシナリオで既に削除されているステップは、「レコーディング時」のスクリーンショットが表示されません。

### 4-2. 「直前の成功時」のスクリーンショットが表示されないケース

過去に同一環境で一度でもテストが成功したことがある場合は、「直前の成功時」のスクリーンショットが表示されますが、以下のケースでは表示されません。

#### 今まで成功したことのない環境で実行した。

新たに今まで実行したことのない環境で実行した場合、もしくはその環境で一度も成功したことがない場合は、「レコーディング時」のスクリーンショットが表示されます。

#### ログ保存期間が過ぎている

「直前の成功時」のスクリーンショットの撮影時期が、ログ保存期間（契約により異なる）よりも前のものとなっている場合、「直前の成功時」ではなく、「レコーディング時」のスクリーンショットが表示されます。


---

# 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-create-scenario/faq-recording/screenshot-specifications.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.
