Automating Clicks on Multiple Dynamic `+` Icons in a Browser

In web applications have multiple + icons to expand sections or add items. Standard For Each UI Element often fails because the icons have dynamic selectors, may not all be loaded at once, or the page structure changes during execution, making it challenging to click every icon reliably.

Any suggestions

Hey @ganeshdo1,

Use Find Children on the parent container to retrieve all child elements.
Filter the children using selector attributes like aaname='+' or matching class names.
Loop through the filtered list with a For Each activity.
Inside the loop, perform a Click on each child element to expand all sections.

Let me if you are facing any issue

1 Like

If you want to do UiAutomation then you are on right path but inside for each you can use element exists or get text and indicate the + icon and put if conditon and if TRUE then click n the + icon everytime else break the loop

Cheers

1 Like

I tried this way but getting some error in selector as every β€œ+” icon as similar kind of selector and showing duplicate match found. Not working

Hi @Mir.Jasimuddin,

Can you provide properties details I need fill.

Looking forward for your ans

Sure @ganeshdo1,

In Find Children, set Target.Element to the parent container, Scope to FIND_DESCENDANTS, and output to a variable like outChildren.
Set Filter with the selector that identifies the + icon, for example <ctrl role='button' aaname='+' /> (Note: adjust this with your original β€˜+’ icon selector)
In For Each, use TypeArgument = UiElement, Values = outChildren, and inside loop Click activity with InputElement = item.

Thanks @Mir.Jasimuddin for your support it’s working now.

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