UI automation combo box - dynamic

Hi Guys,

so with my current automation I want to select a make from the dropdown but only way for the dropdown to appear is to type a letter into the textbox, I have already catered for that. However I am struggling to select the make from the drop down. Find childrens does not seem to work because it does not return any elements.

Note: that the drop down is dynamic so has I keep typing in letters the items in combo box gets lesser.

how do select the item from the drop down?

.
image

@Aki1111

Did you tried by using select item activity. if it wont work
after typing use click activity and indicate the result after completing your typing. i hope already you have handy the item what you are going to select use that variable in selector

Every time I select the drop down it dissapears.

Hey @Aki1111 have you tried for each ui element activity. or store that value in variable and pass that variable in the selector of select item activity.
cheers

Hi @Aki1111

Did you try with a Type into with what you want to s activity and just try to click enter.

Try this, hope this helps!

Hi @Aki1111

To select an item from a dynamic dropdown where the list changes as you type, first use Type Into to type a letter into the textbox, triggering the dropdown. Then, wait for the dropdown to appear using Wait for Element. Since the dropdown is dynamic and changes with each keystroke, use Find Children to retrieve the current list of items. Loop through the children elements, and if an item’s text matches the desired make, use Click to select it. Ensure that your selector is flexible and can adapt to the changing list.

For more check below:

1 Like

Sorry, i didn’t get your point..

Can you explain little bit more

Hi this worked, thank you so much!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.