Using activities from Uipath.Core.Activities in Visual Studio

Hi guys,

Im trying to use an activity from Uipath.Core.Activities in Visual Studio, more specifically UiElementExists, but I can’t get a result.

Im use this in visual Studio →

    public bool ElementExist(string inSelector, int timeout, UiPath.Core.WaitForReady waitForReady)
    {
        UiPath.Core.Activities.UiElementExists actElementExist = new UiPath.Core.Activities.UiElementExists();
        actElementExist.Target.Selector = inSelector;
        actElementExist.Target.TimeoutMS = timeout;
        actElementExist.Target.WaitForReady = waitForReady;
        output = WorkflowInvoker.Invoke(actElementExist);

    }