How do I get uipath to select the first item of the drop down box?


#1

Hi, I’m new here. How do I get uipath to select the first item of the drop down box? I’m trying to get the robot to choose the first item of each drop down box which the selection dynamically changes based on the previous item selected?


#2

Hi @junnieset,

use this link . you can able to get all items. and you can select the first one.

Regards
Bala


#3

Thanks for the help. For my case, the first item is dynamic. For example, the first drop down box ask for 1 selection which will decide what item will appear in the next drop down box and so on. How do I work around this?


#4

Use SetFocus on your box and send hotkey down and then enter. The first item should get selected each time


#5

@junnieset
Use find children activity and set the filter to match first element of dropdown


#7

The name of the item is dynamic. How do I get it match the first element in this case as the item name changes?


#8

I will try this. Hotkey should work.


#9

in the filter, dont specify item name. just mark to get first item.