Example #1
0
 public static void AddUserToTeam(string userName)
 {
     try
     {
         AndroidElement dragItem = UserList.FindElement(userName);
         AndroidElement dropItem = TeamMemberList.GetInternalElement();
         TouchAction    action   = new TouchAction(Appium.Instance.Driver);
         action.Press(dragItem).Wait(1500).MoveTo(dropItem).Release().Perform();
         ConsoleMessage.Pass(String.Format("{0}. Drag user with name: {1} and drop to team", ActivityName, userName));
     }
     catch (Exception ex)
     {
         ConsoleMessage.Fail(String.Format("{0}. Can't drag user with name: {1} and drop to team", ActivityName, userName), ex);
         throw;
     }
 }