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

# 待機ステップ

待機ステップを追加することで、一定の時間スリープ(ウェイト)することが可能です。

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

ただし、Autifyでは対象要素が出現し、操作や検証が可能な状態になるまで自動的に一定の時間待機するため、要素の出現タイミングを調節する意図で待機ステップを設定する必要はほとんどありません。

待機ステップを使ってスリープを行った方が良い事例は主に以下の2つです。

1. ページのローディングに時間がかかりやすい場合
   * ローディングに時間がかかりやすく、テスト実行時にタイムアウトする
   * タイムアウトはしないが、ローディング用のウィジェットに操作を阻害されてうまくいかない
   * 画面から判断できない、裏側の処理を待機する必要がある
2. ページ遷移直後に原因不明の失敗が起きる場合
   * ページ遷移直後の「JSステップ」でなぜか失敗する
   * ページ遷移直後のURLやタイトルの検証で何故か失敗する

なお待機ステップは、1ステップにつき最大600秒（10分） まで設定できます。


---

# 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/creating-a-scenario/sleep-step.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.
