Request to Include ForEach Activity Item in Selectors

Dear UiPath Team,

I’m encountering an issue while attempting to access the Item property of the ForEach activity within Selectors. Currently, it’s not listed, displaying only Variables and Arguments.

I kindly request your attention to include the ForEach activity Item in the Selectors. This enhancement would greatly aid in preparing dynamic selectors, as we frequently utilize the Item value of ForEach.

Your consideration and prompt action on this matter would be greatly appreciated.

Thank you,
Manoj Vijayakumar

Hi @manoj-vkumar

Can you check this out?
I Have used a Find Element to get the UI Element
Used a For Each loop: and Wrote ElemFound.GetNodeAttributes

And these are the logs which I printed.
UiElement.txt (5.6 KB)

I’m guessing you wanted this only?
Although it would get much easier if we get the activity but this is doable currently.

Thanks

Happy Automation!

Hi @adiijaiin ,
Appreciate your reply, but all I wanted is just to create dynamic selectors. I wanted to pass the current item value to the selectors to prepare the dynamic actions for Click or Type Into activities.

-Thanks

Hi @manoj-vkumar ,

Did you check the For Each UI Element activity? This activity is currently limited to web applications, but it would help to understand if it can cover your use case.

This activity can help you iterating through a UI elements collection (through the CurrentElement variable of type UiElement) and performs one or multiple actions on each of them. It also allows configuring filters to keep only a set of elements.

Thanks,
Luiza