uipath.core.UiElement

can we write LINQ query for uipath.Core.activities.findchildren output
like if i want to see the index wise data instead of using for loop

like we can see the data for array with index

similar if want see the particular index values of uipath.core.UiElement value like
we see with uipath.Core.activities.GetAttribute attribute and uipath.Core.activities.GetValue

or more clearly like ----------------------------------

yeh like output of uipath.Core.activities.findchildren with index

then LINQ query for
uipath.Core.activities.GetAttribute attribute target output
uipath.Core.activities.GetValue input target output

so like if filter for finnd children like with span HTMl element
– <“div”>
– <“img”>
<“span”>

once i get all the elements
i want to write LINQ query to get Attribute and value of that attribute
attribute can be like class or row of dicison in HTML element

1 Like

Yep @Sakshi_Jain, This looks very much possible.

But sorry, I didn’t clearly understand on what you are trying to do with LINQ.

Do you want to access count or some property from UiElement ?

Thanks
#nK

yeh like output of uipath.Core.activities.findchildren with index

then LINQ query for
uipath.Core.activities.GetAttribute attribute target output
uipath.Core.activities.GetValue input target output

so like if filter for finnd children like with span HTMl element



once i get all the elements
i want to write LINQ query to get Attribute and value of that attribute
attribute can be like class or row of dicison in HTML element

1 Like

Extremely sorry, for delayed response.

Do you want to get for only one single element or many ?

Thanks
#nK

i am also having same issue could you please let me know for single element.

lets assume that the output variable name is uiChildren
So we can do:
arrValue = uiChildren.Select(Function (x) x.Get("YourAttributeName").toString).ToArray()

1 Like