Hi everyone,
I’m trying to complete an input box (dropdown list) for a form on Internet, this dropdown has options like this:
United States of America - USA
Afghanistan - AFG
Canada - CAN
But my excel file has the information in this way:
USA
AFG
CAN
So, is there any way when my variable = USA the bot understand that it must chose: United States of America - USA?
Thanks in Advance, Marco
Hi.
Sure. What you will need to do is store all the items from the drop down to a list or array variable, then match up the item that contains your string. Then, use the matched item in your Select Item activity to actually choose it.
See if you can find some info on doing this here:
Hi,
Can any one help me in selecting an value from dropdown using ‘SelectItem’ activity dynamically,
Like lets take an example if the dropdown have 10 values in it, i want to select some 3rd or 5th some thing like that, the values will change dynamically so i need to depend on position of that value(i.e count).
How can i do that using Select Item Activity.
Thanks In Advance.
To be simple you will do this:
Assign items to array variable
Select Item activity with:
variable.Where(Function(x) x.ToString.Contains("USA"))(0)
Regards.
3 Likes
Awesome! Thank you so much…
praki
(prakash)
October 4, 2018, 9:27am
4
Hi ClaytonM,
Could you please share the xaml file about that