I used the FindChildren activity to retrieve all the relevant hyperlinks in a web page into a IEnumerable variable. After that, I used a ForEach control flow (passing in the IEnumerable variable as “List of items”) to loop through each UiElement in the IEnumerable variable. How can I retrieve UiElement from each iteration and then pass it into the Click activity?
2 Likes
@royston_foo
Welcome to the forum
When using a for each you already looped the uiElements
For Each Activity: currentItem in YourFindChildrenOutPutVar | Set TypeArgument to UiElement
- Click Activity: use currentItem within the target options under the Unput/Output section as Input element:
1 Like
Hi
Welcome to UiPath community
Would recommend to have a view on this demo project on similar note
Cheers @royston_foo
Welcome to the community
Please change the type argument in For loop properties to UIElement and then currentitem can be used as the item to pass to input element field
cheers