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

# Why doesn't the desired assertion appear when recording?

If you cannot record an assertion after clicking an element, or if the desired type of assertion does not appear as an option, the following may be the cause.

### You have selected a different element close to the one you intended.

First, please ensure you have selected the correct element on which you want to use the assertion. The type of assertion available depends on which element you select. For example, suppose you want to use an assertion that checks whether a button is enabled (clickable) or disabled (non-clickable). In this case, you need to select a `<button>` element. If you select a element that's close to the intended one (such as a parent or sibling element), you may not see the "Element Should Be Enabled / Disabled" assertion.

* [Assertions on elements in a page](https://help.autify.com/nocode-web/en/autify-university/advanced/assertions-1/assertion-elements-on-the-page.md)

### The CSS property `pointer-events: none` is applied to the target element.

If you cannot record an assertion on the desired element, the element may have the CSS property `pointer-events: none` applied to it. If this CSS property is applied, event firing will be disabled, and the Autify Recorder cannot record actions on the element. In this case, there are two workarounds:

#### 1. Remove `pointer-events: none`

You can remove the style by changing your website, or temporarily disable the property via Chrome DevTools. We recommend this workaround as it will allow Autify Recorder to recognize the element, but if it doesn't work, please try the next solution.

#### 2. Use the assertion step you created when `pointer-events: none` was not applied

As an example, here is a workaround for validating whether a button is enabled or disabled. The following condictions must be met to use this workaround:

* When the button is enabled, you can focus on the target element and create an `Element Should Be Enabled` step.
* When the button is disabled, you cannot focus on it due to the `pointer-events: none` property and the "Element Should Be Disabled" assertion does not appear.

If these conditions are met, you can verify that the button is invalid in the following way:

1. Copy the "Element Should Be Enabled" step from the scenario (if the step does not exist yet, please create one by recording it).
2. Open the "Element Should Be Enabled" step that you copied, select **Element Should Be Disabled** in the Action section, and save it.

   ![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-1975b0ade98d6dce516cf5d8e44e623d436650c1%2Fchange-action-en.png?alt=media)


---

# 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/faq/faq-create-scenario/faq-recording/unable-to-select-desired-assertion.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.
