---
title: Set Dropdown Value Command
description: "# Definition The \"Set Dropdown Value\" command refers to automatically changing the selected value of a dropdown menu in a web pages . Dropdown menus are UI elements that allow users to choose one option from a list of available…"
url: "https://legacy.rtila.com/docs/set-dropdown-value-command/"
updated: "2024-10-09"
category: Official Commands
---

# Set Dropdown Value Command

# Definition

The "Set Dropdown Value" command refers to automatically changing the selected value of a dropdown menu in a web pages . Dropdown menus are UI elements that allow users to choose one option from a list of available options.

# Add Set Dropdown Value Command

To use the " Set Dropdown Value " you can add it by searching "Set Dropdown Value" In the Event interface and then adding it.

![](https://legacy.rtila.com/wp-content/uploads/2024/10/Set-dropdown-value.png)
Add Mock Location Command

# Configure Set Dropdown Value Command

Set Dropdown Value command has three possible ways of configurations that the user can configure

![](https://legacy.rtila.com/wp-content/uploads/2023/03/SDM.png)

# Manual Selection Mode

1. Set a name that describes the dropdown menu
2. Clicking on inspect allows you to inspect the CSS selector of the dropdown element
3. This clears the CSS selector field allowing you to inspect another CSS selector
4. CSS selector indicates the selector you inspected, to locate the dropdown menu
5. Selection mode refers to how the value of the dropdown is set
6. This is the value of the item you want to set
7. This refers to based on what the selector will set the item of dropdown, and it has two options
   - Value means that the option with a value attribute that matches the value you entered above in the 6th field
   - Text refers to the text of the dropdown option that also matches the value you entered above in the 6th field
8. Here you can choose what you want to happen if the element is not found

![](https://legacy.rtila.com/wp-content/uploads/2023/03/SDDR-1.png)

# Random Selection Mode

1. Set a name that describes the dropdown menu
2. Clicking on inspect allows you to examine the CSS selector of the dropdown element
3. This clears the CSS selector field allowing you to inspect another CSS selector
4. CSS selector indicates the selector you inspected, to locate the dropdown menu
5. This sets a random option for the dropdown
   -
6. Here you can choose what you want to happen if the element is not found

![](https://legacy.rtila.com/wp-content/uploads/2023/03/SDDI.png)

# Iterate through all values ( loop through all values)

1. Set a name that describes the dropdown menu
2. Clicking on inspect allows you to inspect the CSS selector of the dropdown element
3. This clears the CSS selector field allowing you to inspect another CSS selector
4. CSS selector indicates the selector you inspected, to locate the dropdown menu
5. This creates a loop that Iterates through all values of a dropdown
6. Here you can choose what you want to happen if the element is not found
