# Dropdown selection does not remain

**URL:** https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142
**Category:** Robot Framework
**Created:** [29 December 2020 16:53 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142 "2020-12-29T16:53:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![TeleBack](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@TeleBack](https://forum.robotframework.org/u/TeleBack)
#### Post date: [29 December 2020 16:53 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/1 "2020-12-29T16:53:30Z")

</div>

Hello, I am new to RF and could really use your help.

When I manually select an item from this dropdown and refresh the page, the one I selected is displayed, as it should be. However, when I run my automation and select one of them, it does not.  
It is unclear to my why it works when I manually click the selection with the mouse but it does not when I use Click Element.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/1X/a21c957630bd934f39197ca9483171d33759d6d3.png)

Here is my code:

Wait Until Element Is Visible id=entry-point-dropdown  
Click Element id=entry-point-dropdown  
Select From List by Value id=entry-point-dropdown Dashboard  
Click Element xpath=//option[contains(text(),‘Dashboard’)]

TIA  
Bill

---

<div class="post-metadata">

### Author: ![weh2017](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/weh2017/32/565_2.png) [@weh2017](https://forum.robotframework.org/u/weh2017)
#### Post date: [30 December 2020 07:05 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/2 "2020-12-30T07:05:30Z")

</div>

Hi,

Did you try this one?

Select from list by value {element} {value that you want to select}

not sure if this is works.

---

<div class="post-metadata">

### Author: ![TeleBack](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@TeleBack](https://forum.robotframework.org/u/TeleBack)
#### Post date: [30 December 2020 13:06 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/3 "2020-12-30T13:06:07Z")

</div>

Hi weh2017,

Thank you for your reply.

Yes, that is what is in my code example above:  
Select From List By Value id=entry-point-dropdown Dashboard

---

<div class="post-metadata">

### Author: ![weh2017](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/weh2017/32/565_2.png) [@weh2017](https://forum.robotframework.org/u/weh2017)
#### Post date: [30 December 2020 13:41 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/4 "2020-12-30T13:41:20Z")

</div>

Hi,

Sorry I’ve mistakenly posted my reply. something missing in my previous post. See below.

Select From List By Value {locator} {the\_value\_that\_you\_want\_to\_select}

When you notice my code above, I’ve created 2 arguments; 1st the locator and the 2nd is the value that you want to select from the dropdown list. Not sure if your code needs the 2nd argument.

---

<div class="post-metadata">

### Author: ![TeleBack](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@TeleBack](https://forum.robotframework.org/u/TeleBack)
#### Post date: [30 December 2020 13:51 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/5 "2020-12-30T13:51:31Z")

</div>

Hello weh2017,

Yes, I also have two arguments in my code. “Dashboard” is the second argument. 😉

---

<div class="post-metadata">

### Author: ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)
#### Post date: [30 December 2020 18:14 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/6 "2020-12-30T18:14:13Z")

</div>

Could you define what do you do when you “refresh the page” in robot framework ?

---

<div class="post-metadata">

### Author: ![TeleBack](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@TeleBack](https://forum.robotframework.org/u/TeleBack)
#### Post date: [30 December 2020 18:23 UTC](https://forum.robotframework.org/t/dropdown-selection-does-not-remain/1142/7 "2020-12-30T18:23:38Z")

</div>

I logout and then login again. I can also simply click on the browser’s Reload this Page button.
