Double check if in your project (in Manage Packages you can install) you have installed the UiPath.UIAutomation.Activities dependency.