Source:NewTonSoft.Json :::::: JsonSerialization exception

I am trying to find 3 elements on a page by Find Element activity and store there output as arguments so that i could use them in other activity.
When i run the workflow, elements are identified but at the end of execution i get following error
Source: Newtonsoft.Json

Message: Unable to find a constructor to use for type UiPath.Core.UiElement. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path ‘Output.loginbutton.Selector’, line 1, position 105.

Exception Type: JsonSerializationException

I only have three activity of Find Element in workflow

Are you using any OutArguments and workflow is invoked with isolated flag or via LaunchWorkflowInteractive?

Looks like you’re trying to pass an object that cannot be serialized across process boundaries.

Hello Andrzej,

Even I have the same issue as above mentioned Can you please help me out finding the solution