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

# アサーション

## アサーションステップの作成

Autifyではページ上の特定の要素や情報を検証することができます。

Autifyのアサーションには、次の2種類があります。

1. ページ内の要素に対するアサーション
2. ページに対するアサーション

レコーディング中に、Autifyレコーダーのチェックボックスアイコン <img src="https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-51d7ec425f10e52f9a4bd21ef73a9e140398a3f4%2FScreen%20Shot%202021-09-29%20at%2011.50.41%20AM.png?alt=media" alt="" data-size="line"> をクリックすると、アサーションステップを追加できます。

### ページ内の要素に対するアサーション

ページ内の要素に対するアサーションステップを追加するには、Autifyレコーダーのチェックボックスアイコンをクリックし、検証したい対象要素にマウスのカーソルを合わせます。検証する要素が濃いグレーの四角で強調表示されます。クリックすると、コマンドを一覧から選ぶことができます。適切なコマンドを選び、追加ボタンをクリックしてください。

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

表示されるコマンドは対象要素によって異なります。詳しくは[こちら](https://help.autify.com/nocode-web/autify-university/advanced/assertions-1/assertion-elements-on-the-page.md)をご覧ください。

### ページに対するアサーション

ページに対するアサーションステップを追加するには、Autifyレコーダーのチェックボックスアイコンをクリックし、**ページの情報を確認** をクリックしてください。

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

クリックするとコマンド一覧が表示されます。適切なコマンドを選択し、追加ボタンをクリックします。

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

表示されるコマンドの詳細は[こちら](https://help.autify.com/nocode-web/autify-university/advanced/assertions-1/assertions-against-the-page.md)をご覧ください。

{% hint style="info" %}
**SPA など非同期通信が発生するページの検証**

Autifyはアサーション対象となる要素がページ内に存在しない場合は、一定時間探索を続けます。そのため、非同期通信が発生するページでも一定時間内であれば待機ステップが不要です。
{% 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/creating-a-scenario/assertions.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.
