示例#1
0
        protected override string DoImpl()
        {
            FlickParameters flickParameters;

            if (this.ExecutedCommand.Parameters.ContainsKey("element"))
            {
                flickParameters = this.ParseFlickFromElementParameters();
            }
            else
            {
                throw new AutomationException(
                          "Flick without start point is not supported. Please provide lement to flick form.");
            }

            Logger.LogMessage("Flick with: {0}", flickParameters.ToString());

            Gesture.Flick(
                flickParameters.StartPoint,
                flickParameters.Length,
                flickParameters.Direction,
                flickParameters.Duration);

            return(this.JsonResponse(ResponseStatus.Success, null));
        }