public static void DeleteElement(string elementName) { AndroidElement dragItem = ElementList.FindElement(elementName); AndroidElement dropItem = Trash.GetInternalElement(); try { TouchAction action = new TouchAction(Appium.Instance.Driver); action.Press(dragItem).Wait(1500).MoveTo(dragItem).MoveTo(dropItem).Release().Perform(); ConsoleMessage.Pass(String.Format("{0}. Delete element from flow. Drag item: {1} and drop to: {2}", ActivityName, elementName, Trash.ElementName)); } catch (Exception ex) { ConsoleMessage.Fail(String.Format("{0}. Can't delete element from flow. Can't drag item: {1} and drop to: {2}", ActivityName, elementName, Trash.ElementName), ex); throw; } }