Beispiel #1
0
        /// <summary>
        /// Wait for the given duration.
        /// </summary>
        /// <param name="ms">The amount of time to wait in milliseconds.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction Wait(long?ms = null)
        {
            Step waitStep = new Step("wait");

            waitStep
            .AddOpt("ms", ms);
            this.steps.Add(waitStep);
            return(this);
        }
 /// <summary>
 /// Press at the specified location in the element until the  context menu appears.
 /// </summary>
 /// <param name="element">The target element.</param>
 /// <param name=x>The x coordinate relative to the element.</param>
 /// <param name=y>The y coordinate relative to the element.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction LongPress(double x, double y)
 {
     Step longPressStep = new Step("longpress");
     longPressStep
         .AddOpt("x", x)
         .AddOpt("y", y);
     this.steps.Add (longPressStep);
     return this;
 }
 /// <summary>
 /// Press at the specified location in the element until the  context menu appears.
 /// </summary>
 /// <param name="element">The target element.</param>
 /// <param name=x>The x coordinate relative to the element.</param>
 /// <param name=y>The y coordinate relative to the element.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction LongPress(IWebElement element, double? x = null, double? y = null)
 {
     Step longPressStep = new Step("longpress");
     longPressStep
         .AddOpt ("element", element)
         .AddOpt("x", x)
         .AddOpt("y", y);
     this.steps.Add (longPressStep);
     return this;
 }
Beispiel #4
0
        /// <summary>
        /// Press at the specified location.
        /// </summary>
        /// <param name=x>The x coordinate.</param>
        /// <param name=y>The y coordinate.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction Press(double x, double y)
        {
            Step pressStep = new Step("press");

            pressStep
            .AddOpt("x", x)
            .AddOpt("y", y);
            this.steps.Add(pressStep);
            return(this);
        }
Beispiel #5
0
        /// <summary>
        /// Press at the specified location in the element until the  context menu appears.
        /// </summary>
        /// <param name="element">The target element.</param>
        /// <param name=x>The x coordinate relative to the element.</param>
        /// <param name=y>The y coordinate relative to the element.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction LongPress(double x, double y)
        {
            Step longPressStep = new Step("longpress");

            longPressStep
            .AddOpt("x", x)
            .AddOpt("y", y);
            this.steps.Add(longPressStep);
            return(this);
        }
Beispiel #6
0
        /// <summary>
        /// Move to the specified location.
        /// </summary>
        /// <param name=x>The x coordinate.</param>
        /// <param name=y>The y coordinate.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction MoveTo(double x, double y)
        {
            Step moveToStep = new Step("moveTo");

            moveToStep
            .AddOpt("x", x)
            .AddOpt("y", y);
            this.steps.Add(moveToStep);
            return(this);
        }
Beispiel #7
0
        /// <summary>
        /// Press at the specified location in the element until the  context menu appears.
        /// </summary>
        /// <param name="element">The target element.</param>
        /// <param name=x>The x coordinate relative to the element.</param>
        /// <param name=y>The y coordinate relative to the element.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction LongPress(IWebElement element, double?x = null, double?y = null)
        {
            Step longPressStep = new Step("longpress");

            longPressStep
            .AddOpt("element", element)
            .AddOpt("x", x)
            .AddOpt("y", y);
            this.steps.Add(longPressStep);
            return(this);
        }
Beispiel #8
0
        /// <summary>
        /// Tap at the specified location.
        /// </summary>
        /// <param name="x">The x coordinate relative to the element.</param>
        /// <param name="y">The y coordinate relative to the element.</param>
        /// <param name="count">The number of times to tap.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction Tap(double x, double y, long?count = null)
        {
            Step tapStep = new Step("tap");

            tapStep
            .AddOpt("x", x)
            .AddOpt("y", y)
            .AddOpt("count", count);
            this.steps.Add(tapStep);
            return(this);
        }
Beispiel #9
0
        /// <summary>
        /// Move to the specified location in the element.
        /// </summary>
        /// <param name="element">The target element.</param>
        /// <param name=x>The x coordinate relative to the element.</param>
        /// <param name=y>The y coordinate relative to the element.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction MoveTo(IWebElement element, double?x = null, double?y = null)
        {
            Step moveToStep = new Step("moveTo");

            moveToStep
            .AddOpt("element", element)
            .AddOpt("x", x)
            .AddOpt("y", y);
            this.steps.Add(moveToStep);
            return(this);
        }
Beispiel #10
0
        /// <summary>
        /// Press at the specified location in the element.
        /// </summary>
        /// <param name="element">The target element.</param>
        /// <param name=x>The x coordinate relative to the element.</param>
        /// <param name=y>The y coordinate relative to the element.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction Press(IWebElement element, double?x = null, double?y = null)
        {
            Step pressStep = new Step("press");

            pressStep
            .AddOpt("element", element)
            .AddOpt("x", x)
            .AddOpt("y", y);
            steps.Add(pressStep);
            return(this);
        }
Beispiel #11
0
        /// <summary>
        /// Tap at the specified location in the element.
        /// </summary>
        /// <param name="element">The target element.</param>
        /// <param name="x">The x coordinate relative to the element.</param>
        /// <param name="y">The y coordinate relative to the element.</param>
        /// <param name="count">The number of times to tap.</param>
        /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
        public ITouchAction Tap(IWebElement element, double?x = null, double?y = null, long?count = null)
        {
            Step tapStep = new Step("tap");

            tapStep
            .AddOpt("element", element)
            .AddOpt("x", x)
            .AddOpt("y", y)
            .AddOpt("count", count);
            this.steps.Add(tapStep);
            return(this);
        }
 /// <summary>
 /// Move to the specified location in the element.
 /// </summary>
 /// <param name="element">The target element.</param>
 /// <param name=x>The x coordinate relative to the element.</param>
 /// <param name=y>The y coordinate relative to the element.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction MoveTo(IWebElement element, double? x = null, double? y = null)
 {
     Step moveToStep = new Step("moveTo");
     moveToStep
         .AddOpt ("element", element)
         .AddOpt("x", x)
         .AddOpt("y", y);
     this.steps.Add (moveToStep);
     return this;
 }
 /// <summary>
 /// Wait for the given duration.
 /// </summary>
 /// <param name="ms">The amount of time to wait in milliseconds.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction Wait(long? ms = null)
 {
     Step waitStep = new Step("wait");
     waitStep
         .AddOpt ("ms", ms);
     this.steps.Add (waitStep);
     return this;
 }
 /// <summary>
 /// Tap at the specified location.
 /// </summary>
 /// <param name="x">The x coordinate relative to the element.</param>
 /// <param name="y">The y coordinate relative to the element.</param>
 /// <param name="count">The number of times to tap.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction Tap(double x, double y, long? count = null)
 {
     Step tapStep = new Step("tap");
     tapStep
         .AddOpt("x", x)
         .AddOpt("y", y)
         .AddOpt("count", count);
     this.steps.Add (tapStep);
     return this;
 }
 /// <summary>
 /// Tap at the specified location in the element.
 /// </summary>
 /// <param name="element">The target element.</param>
 /// <param name="x">The x coordinate relative to the element.</param>
 /// <param name="y">The y coordinate relative to the element.</param>
 /// <param name="count">The number of times to tap.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction Tap(IWebElement element, double? x = null, double? y = null, long? count = null)
 {
     Step tapStep = new Step("tap");
     tapStep
         .AddOpt ("element", element)
         .AddOpt("x", x)
         .AddOpt("y", y)
         .AddOpt("count", count);
     this.steps.Add (tapStep);
     return this;
 }
 /// <summary>
 /// Press at the specified location.
 /// </summary>
 /// <param name=x>The x coordinate.</param>
 /// <param name=y>The y coordinate.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction Press(double x, double y)
 {
     Step pressStep = new Step("press");
     pressStep
         .AddOpt("x", x)
         .AddOpt("y", y);
     this.steps.Add (pressStep);
     return this;
 }
 /// <summary>
 /// Move to the specified location.
 /// </summary>
 /// <param name=x>The x coordinate.</param>
 /// <param name=y>The y coordinate.</param>
 /// <returns>A self-reference to this <see cref="ITouchAction"/>.</returns>
 public ITouchAction MoveTo(double x, double y)
 {
     Step moveToStep = new Step("moveTo");
     moveToStep
         .AddOpt("x", x)
         .AddOpt("y", y);
     this.steps.Add (moveToStep);
     return this;
 }