Get UiElement from datatable

Hi guys,
I collect UiElements using Find Children Activity and add them to datatable. After that problem is how to get UiElements from datatable:

  • datatable with 2 columns: Element Name(string), Element(UiPath.Core.UiElement)

ElementsTable.Rows(0).Item(1) returns Object instead UiElement.
ElementsTable.Rows(0).Item(1).ToString returns string

Do you have idea how to pull UiElement to use it for example with click activity?

Regards,
Maciej

Try this

declare a variable of type UiElement (say myElement)

myElement = ElementsTable.Rows(0).Item(1) //using assign activity

As I wrote:
ElementsTable.Rows(0).Item(1) returns Object instead UiElement.
“disallows implicit conversion from ‘Object’ to ‘UiPath.Core.UiElement’”