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

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

## 1. ページのタイトルに対するアサーション

**ページタイトル** とは、\
**title** タグで設定される文字列のことです。

タブやウィンドウの部分に表示されたり、ブックマークするときの名称として使用されます。

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

| キーワード名            | 概要                           |
| ----------------- | ---------------------------- |
| タイトルが〇〇であることを確認する | ページタイトルが指定の文字列と完全一致することを確認する |

タイトルに対する部分一致のコマンドが必要な場合は弊社サポートチームまでご連絡ください。

## 2. ページの URL に対するアサーション

| キーワード名           | 概要                             |
| ---------------- | ------------------------------ |
| URLが〇〇であることを確認する | 現在の URL が指定の文字列と完全に一致することを確認する |
| URLが〇〇を含むことを確認する | 現在の URL が指定の文字列を含むことを確認する      |

URLが動的に変わってしまうようなページのURLを検証したい場合は **URLが〇〇を含むことを確認する** を使用することをおすすめします。

## 3. ページに含まれるすべてのテキスト

| キーワード名             | 概要                       |
| ------------------ | ------------------------ |
| ページが〇〇を含まないことを確認する | ページ内に指定の文字列が存在しないことを確認する |

{% hint style="info" %}
**アサーションの対象外となる要素**

もし要素が`display: none;`、`visibility: hidden;`、または`opacity: 0;`のいずれかのスタイルを持っている場合、その要素はページ上に存在しないものと見なされ、このアサーションの対象外になります。
{% endhint %}

## 4. ページ上のすべてのHTML要素

現在 **ページに指定の要素が存在することを確認する**\
は **ページに対するアサーション**（**ページの情報を確認** をクリック）のコマンドとして表示されますが、 将来的には **ページ内の要素に対するアサーション** のコマンドとなる予定です。

| キーワード名                | 概要                    |
| --------------------- | --------------------- |
| ページに指定の要素が存在することを確認する | ページに特定の要素が存在することを確認する |

非表示状態など、一般ユーザーが存在を確認できない状態であったとしても、 HTMLの要素として存在していれば成功となります。


---

# 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/advanced/assertions-1/assertions-against-the-page.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.
