public void SwipeAccrossTheFields(Point tool, Point firstField) { CommandList.BeginMouseDrag(tool); CommandList.Sleep(500); CommandList.ContinueDrag(firstField); CommandList.Sleep(500); Point leftTop = new Point(swipeX1, swipeY1); Point leftBottom = new Point(swipeX1, swipeY2); while (leftTop.X < swipeX2) { CommandList.ContinueDrag(leftTop, leftBottom); leftTop.X += swipeXIncrements; leftBottom.X += swipeXIncrements; } CommandList.EndDrag(); }