> 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-assertion/can-i-validate-the-options-in-the-pull-down.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Can I validate pull-down menu options?

Have you ever wanted to test pull-down menu options?

* Validate the values in a pull-down menu.
* Validate that a particular value exists (or does not exist) in the pull-down menu.

With Autify, you can test the values in pull-down menus by using the following assertions:

* Element Text Should Be
* Element Should Contain
* Element Should Not Contain

Let's look at how to record a step that validates pull-down menu options.

When recording, please be aware that when you focus on the `select` element of a pull-down menu, the assertions "Element Text Should Be" and "Element Should (Not) Contain" commands will not appear.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-36fab1b7aa919941f002c723eff853aff82c009e%2Fvalidate-pull-down-menu-focus-select-en.png?alt=media)

To make these commands appear, focus on the parent element of the `select` element, such as `div` and `p` elements. When you focus on a `div` element, the commands "Element Text Should Be" and "Element Should (Not) Contain" will appear.

Let's say we selected "Element Text Should Be." In the Value section, options within the pull-down menu appear. Select the option you wish to validate and click **Save Assertion**. That's it! You now know how to test the options within a pull-down menu.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-6aeb7f39c340612843c2ad0056f106d8e92b30fa%2Fvalidate-pull-down-menu-focus-div-en.png?alt=media)

Next, let's check whether an option does **not** exist in a pull-down menu. Here, we will select **Element Should Not Contain** in the Command section and choose an option that *does* exist in the Value section. Let's see if the test fails.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-4995c7531c08a3e60f8c7c7ff87fb0268fd2a9ad%2Fvalidate-pull-down-not-exist-en.png?alt=media)

As expected, the test failed! This is because the value we selected exists within the pull-down menu.

![](https://1964297753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVdZPTgwISYb3LhjgKnw6%2Fuploads%2Fgit-blob-e17b103067ec8c2825511c461057cb2fe1247063%2Fvalidate-pull-down-fail-test-en.png?alt=media)

To sum up, you can test pull-down menu options by using the assertions "Element Text Should Be," "Element Should Contain," or "Element Should Not Contain."


---

# 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-assertion/can-i-validate-the-options-in-the-pull-down.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.
