/// <summary> /// Selects the provided items with the mouse preparing for a drag and drop /// </summary> /// <param name="source"></param> private static void SelectItemsForDragAndDrop(AutomationElement[] source) { AutomationWrapper.Select(source.First()); for (int i = 1; i < source.Length; i++) { AutomationWrapper.AddToSelection(source[i]); } Mouse.MoveTo(source.Last().GetClickablePoint()); Mouse.Down(MouseButton.Left); }