> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-en/action-guide/keyboard/select-dropdown.md).

# Select dropdown

Select dropdown is an action that instructs the browser to automatically select a specific value from a dropdown menu.

🎥 Watch the tutorial video: [Here](https://youtu.be/cCTEtuMtz-s).

> ⚠️ Important note: This action only works for elements with the standard HTML structure `<select>` (for example: dropdown menus for selecting Province/City, selecting Year of birth in the traditional way).
>
> For newer generation dropdowns built from `<div>` or `<span>` elements (like the interfaces of some modern social networks), this action will not work. In that case, you need to handle it by: Using the Mouse click command to click on the dropdown to expand the list ➔ Then use a second Mouse click command to select the desired value based on the XPath of that row.

#### Configuration parameters:

* XPath: The identifier path (XPath) that directly points to the `<select>` element on the webpage (Example: `(//select)[1]`).
* Select text: Fill in based on the publicly displayed text on the screen (Example: `<option value="VN">Việt Nam</option>` ➔ Fill in the value as `Việt Nam`).

#### Practical example: Automatically select Country when registering an account

When your script reaches the account registration step and encounters a country selection dropdown.

* Configuration:
  * XPath: `(//select)[1]`
  * Select text: Fill in Australia
* Result: The system will immediately activate the selection box and change the displayed value on the screen to "Australia" accurately and safely.

<figure><img src="https://2961903581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpIRrmOLZkhHBXdAiidIw%2Fuploads%2Fgit-blob-18e1d1c05decea4bf492f72b06bd272d52c6ae04%2Fkb-03.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2961903581-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpIRrmOLZkhHBXdAiidIw%2Fuploads%2Fgit-blob-b8e0df5f4a2aa55a563a852708b82877ca4a1cda%2Fkb-03b.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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://docs.gpmautomate.com/automate-en/action-guide/keyboard/select-dropdown.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.
