DropDownList Select by Index or Value

uiautomation

#1

How could we select dropdownlist by index or value?


#2

Hi @josephtony.apz,

Drop down select based on the value while using the select item activity.

Regards, Arivu


#3

How about using Click Activity, @josephtony.apz?
Assuming you are clicking a web dropdown, it will look like:

Click the Select Tag itselft:
<webctrl name='select' tag='SELECT' />

Click the item by IDX:
<ctrl idx='1' name='*' role='list item' />
Note: when using IDX make sure the selector is unique


#4

In my dropdownlist only hard coded values working. when I use variables to assign value, it doesn’t work. most of the basic tips from different forums tried but no use…


#5

Any sample, @josephtony.apz?