# How to select value from dropdown list

**URL:** <https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647>\
**Category:** Robot Framework\
**Created:** [12 January 2024 05:50 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647 "2024-01-12T05:50:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![virendra20](https://avatars.discourse-cdn.com/v4/letter/v/e274bd/32.png) [@virendra20](https://forum.robotframework.org/u/virendra20)\
**Post date:** [12 January 2024 05:50 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647/1 "2024-01-12T05:50:20Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/9/9656006cd1e7eec37f9ae333d5fd664e580dff57.png)

After successfully selecting value from dropdown. Dropdown list is not getting vanish or invisible(I mean to say dropdown list is still open), hence its intercepting next element.  
So how can I select next element successfully?

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [12 January 2024 06:27 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647/2 "2024-01-12T06:27:59Z")

</div>

Hi Virendra,

Some custom styled web elements have odd behaviours like this when being automated.

There’s a couple of things you can try:

- Click on the drop down box that you initially clicked to open the list (has ^ on the right)
- click outside e.g. on the account number field, even if that’s not editable, just clicking it might cause the drop down to close
- after using what you’re using to select the value, then do a click on the selected value

The reason for this is because what you’re seeing on the screen is not a real option list, the real html standard option list is hidden in the background and what you’re seeing on the screen is css styled elements presenting as a “pretty” option list, when you click the styled element it triggers JavaScript to close the styled elements and update the hidden real option list.

Hope that helps.

Dave.

---

<div class="post-metadata">

**Author:** ![virendra20](https://avatars.discourse-cdn.com/v4/letter/v/e274bd/32.png) [@virendra20](https://forum.robotframework.org/u/virendra20)\
**Post date:** [12 January 2024 06:31 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647/3 "2024-01-12T06:31:42Z")

</div>

Thanks Dave.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [12 January 2024 06:34 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647/4 "2024-01-12T06:34:22Z")

</div>

Hi Virendra,

BTW just curios, the bank names look like Indonesian banks are you in Indo?

Dave.

---

<div class="post-metadata">

**Author:** ![virendra20](https://avatars.discourse-cdn.com/v4/letter/v/e274bd/32.png) [@virendra20](https://forum.robotframework.org/u/virendra20)\
**Post date:** [12 January 2024 07:18 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647/5 "2024-01-12T07:18:47Z")

</div>

No. my project related to Indonesia.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [12 January 2024 12:06 UTC](https://forum.robotframework.org/t/how-to-select-value-from-dropdown-list/6647/6 "2024-01-12T12:06:30Z")

</div>

Ah OK, hopefully you get a visit to Indonesia out of it 🤞

Dave.
