How to initialize IEnumerable <uielement>?

Hello,

I am using the find children activity and i need to initialize the output “children” every time.

How i do initialize it?

1 Like

Hi @EngAnalyst

Try Enumerable.Empty(of UiElement)

Thanks
Ashwin S

Hi
in variable panel set the default value as
New Enumerable.Empty(Of UiPath.Core.UiElement)
for initializing a Ienumerable of uielement variable

Cheers @EngAnalyst

Hi All,

Am trying to using foreach parallel activity where am trying to pass a default value to variable of type IEnumerable but getting this error . Can anyone help me how I can resolve the same ?

Hi @Nalini_Samayamantri

Instead of giving {1,2}

Try using 1,2

Thanks
ashwin.S