> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/support-resources/knowledge-base-articles/dropdown-value-not-getting-displayed-during-script-execution.md).

# Dropdown Value Not getting Displayed During Script Execution

**Summary**: This article addresses an issue where a dropdown value does not appear during script execution, even though it works correctly when performed manually. It also provides guidance on the appropriate action to use for such scenarios.

### Error behavior

When this issue occurs, you may observe the following behavior:

* The dropdown value is not displayed or selected during automation execution. &#x20;
* The same steps work correctly when executed manually. &#x20;
* No explicit error message may be shown, but the expected value is not reflected in the dropdown. &#x20;

### **Possible Reasons**

This issue may occur due to one or more of the following reasons:

* The Set Text action may not interact correctly with dropdown fields. &#x20;
* Dropdown controls often require keyboard-based input rather than direct text entry. &#x20;
* UI behaviour during automation can differ from manual interaction. &#x20;
* The control may depend on events (such as keypresses) that are not triggered by the Set Text action.&#x20;

### Resolution/Solution

To resolve this issue and ensure successful execution, perform the following actions:

1. Identify the step where the dropdown value is being entered. &#x20;
2. Check if the Set Text action is being used. &#x20;
3. Replace the Set Text action with the Send Keystroke action. &#x20;
4. Enter the required value using the Send Keystroke action. &#x20;
5. Execute the script again. &#x20;
6. Verify that the dropdown value is displayed correctly.&#x20;


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/support-resources/knowledge-base-articles/dropdown-value-not-getting-displayed-during-script-execution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
