How to use UiPath.Core.UiElement in Custom Activities?

I’m going to make getting pop-up text from the browser
but do not know how to insert Inargument UiElement for custom activities

I think in/out argument

in : selector xml string => same used UiPath studio selector
out : get popup text

I want get uielement from input xml string