> 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/en/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).

# Assertions against the page

## 1. Assertions on page titles

A **page title** is a string of characters set in the **title** tag.

It is displayed in tabs and window sections and is used as a name when bookmarking.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-e44eba9cd18807327eaca79b59876b7a65e37b22%2Fzndsk-Screen_Shot_2021-05-01_at_9.50.34.png?alt=media)

| Keyword         | Description                                                     |
| --------------- | --------------------------------------------------------------- |
| Title Should Be | Verify that the page title exactly matches the specified string |

If you need a partial match command for a title, please contact our support team.

## 2. Assertions on page URLs

| Keyword                 | Description                                                      |
| ----------------------- | ---------------------------------------------------------------- |
| Location Should Be      | Verify that the current URL exactly matches the specified string |
| Location Should Contain | Verify that the current URL contains the specified string        |

If you want to validate the URL of a page where the URL changes dynamically, we recommend using **Location Should Contain**.

## 3. Assertions on all text contained in the page

| Keyword                 | Description                                                 |
| ----------------------- | ----------------------------------------------------------- |
| Page Should Not Contain | Verify that the specified string does not exist in the page |

{% hint style="info" %}
**Elements not subject to this assertion**

If any of `display: none;`, `visibility: hidden;` or `opacity: 0;` properties are set to elements, those elements are treated as if they are not on the page and are not subject to this assertion.
{% endhint %}

## 4. Assertions on all HTML elements on the page

Currently, **Page Should Contain Element** is shown as a command for assertions on the page (click the **Assert against page** button), but in the future, it will be a command for **assertions on elements within the page**.

| Keyword                     | Description                                          |
| --------------------------- | ---------------------------------------------------- |
| Page Should Contain Element | Verify that certain elements are present on the page |

Even if the element is not visible to the general public, it will be considered successful if it exists as an HTML element. For more information, please refer to "Frequently Asked Questions about Assertions".


---

# 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/en/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.
