How to solve Click 'PATH': Unable to cast object of type 'VariableLocation[System.Activities.NoPersistHandle]' to type 'VariableLocation[System.Int32]'?
Issue Description
An error with the Click activity in UiPath Studio while trying to automate a UI page.
Click 'PATH': Unable to cast object of type 'VariableLocation[System.Activities.NoPersistHandle]' to type 'VariableLocation[System.Int32]'
Root Cause
The UI activity input mode may be incompatible with your UI action.
Resolution
Try changing the input modes of the impacted UI activities (click and type actions) from the current one to something else (for example, Simulate into Chromium API) and then save, test, and publish the project.