Loop through all same name buttons and click on them

Hello

All the buttons have the same name

The fuzzy selector is
SyntaxEditor Code Snippet

Now, I have tried to use a find Children and the output is Openbuttons

Then for each activity that loops through the Openbuttons
and finally click activity that the Input element is set to currentUiElement

When running this, it stops as successful?!

Any ideas, I would really appreciate

check the find children output within the debugging panels as a first analysis step:

Hi @GeorgeBo

Might be because of Find Children is returning an empty list or the buttons found aren’t interactable. Make sure to log Openbuttons.Count, use a precise filter like “”, verify aaname with currentUiElement.Get(“aaname”), and also check by disable simulate Click, and add a small delay before clicking.

Happy Automation

Hi all

Thank you all for your help
@prashant1603765 , you are very right.
The count of Openbuttons returns 0
Why?
I have used find children, the open buttons should be 10, I have set the scope to find the descendants.
Any ideas?
Should I use different approach?

thanks

what about the filter of the find children?

@GeorgeBo

Instead of for each
can you try with For each Ui Element activity.