# Dropdown

**URL:** <https://forum.uipath.com/t/dropdown/183162>\
**Category:** Help\
**Tags:** data-manipulation, question, activities, system, uiautomation\
**Created:** [January 8, 2020, 9:05am UTC](https://forum.uipath.com/t/dropdown/183162 "2020-01-08T09:05:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinutha1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vinutha1/32/176959_2.png) [@vinutha1](https://forum.uipath.com/u/vinutha1)\
**Post date:** [January 8, 2020, 9:05am UTC](https://forum.uipath.com/t/dropdown/183162/1 "2020-01-08T09:05:24Z")

</div>

Hi all,  
I have to take a dropdown list and run in the for each loop.which am doing using find children and get attribute inside the for each loop using aaname of children for the first time it works fine but for the second time gives an error as h result failed .

Kindly help me on this to resolve asap.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![vinutha1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vinutha1/32/176959_2.png) [@vinutha1](https://forum.uipath.com/u/vinutha1)\
**Post date:** [January 8, 2020, 9:20am UTC](https://forum.uipath.com/t/dropdown/183162/2 "2020-01-08T09:20:53Z")

</div>

The error is Get Attribute: Error HRESULT E\_FAIL has been returned from a call to a COM component.

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [January 8, 2020, 9:51am UTC](https://forum.uipath.com/t/dropdown/183162/3 "2020-01-08T09:51:10Z")

</div>

Hi @vinutha1

Are you able to get the selector for other values

Can you verify it?

Thanks  
Ashwin S

---

<div class="post-metadata">

**Author:** ![kommijeevan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kommijeevan/32/115243_2.png) [@kommijeevan](https://forum.uipath.com/u/kommijeevan)\
**Post date:** [January 8, 2020, 12:09pm UTC](https://forum.uipath.com/t/dropdown/183162/4 "2020-01-08T12:09:15Z")

</div>

Hi @vinutha1

Try this one  
1.create array of drop down list and use for each activity pass that array.  
2.use click activity set selector aaname to assign item of for each.  
please find below screenshot to pass the variable in click activity.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/f/4/f424a60dec1b196467203f6b1f1a555d2dc0c40b.png)

Regards,  
Kommi Jeevan.
