Gesture Class

Contains static methods for performing Touch gestures.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.Gesture

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

'Declaration
Public NotInheritable Class Gesture
public sealed class Gesture
public ref class Gesture sealed
[<Sealed>]
type Gesture =  class end
public final class Gesture

The Gesture type exposes the following members.

Methods

  Name Description
Public methodStatic member DoubleTap(Point) Perform a double tap gesture.
Public methodStatic member DoubleTap(UITestControl) Perform a double tap gesture.
Public methodStatic member DoubleTap(UITestControl, Point) Perform a double tap gesture.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member Flick(Point, UInt32, UITestGestureDirection, UInt32)
Public methodStatic member Flick(Point, UInt32, Double, UInt32)
Public methodStatic member Flick(UITestControl, Point, UInt32, UITestGestureDirection, UInt32)
Public methodStatic member Flick(UITestControl, Point, UInt32, Double, UInt32)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Pinch(Point, Point, UInt32) Perform a pinch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic member Pinch(UITestControl, Point, Point, UInt32) Perform a pinch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic member PressAndHold(Point) Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic member PressAndHold(UITestControl) Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic member PressAndHold(UITestControl, Point) Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic member PressAndHold(UITestControl, Point, Int32) Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Public methodStatic member Slide(Point, Point) Perform a slide gesture. A slide gesture is used primarily for panning interactions but can also be used for moving, drawing, or writing.
Public methodStatic member Slide(Point, Point, UInt32)
Public methodStatic member Slide(UITestControl, Point, Point) Perform a slide gesture. A slide gesture is used primarily for panning interactions but can also be used for moving, drawing, or writing.
Public methodStatic member Slide(UITestControl, Point, Point, UInt32)
Public methodStatic member Stretch(Point, Point, UInt32) Perform a stretch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic member Stretch(UITestControl, Point, Point, UInt32) Perform a stretch gesture which essentially is used for three types of interactions: optical zoom, resizing, and semantic zoom.
Public methodStatic member Swipe(UITestControl, UITestGestureDirection) Perform a swipe gesture which is a quick slide of a finger for a short distance. For example, swipe across an email in your inbox to select it or swipe down on a tile to select it.
Public methodStatic member Swipe(UITestControl, Double) Perform a swipe gesture which is a quick slide of a finger for a short distance. For example, swipe across an email in your inbox to select it or swipe down on a tile to select it.
Public methodStatic member Swipe(UITestControl, UITestGestureDirection, UInt32)
Public methodStatic member Swipe(UITestControl, Double, UInt32)
Public methodStatic member Tap(Point) Perform a tap gesture.
Public methodStatic member Tap(UITestControl) Perform a tap gesture.
Public methodStatic member Tap(UITestControl, Point) Perform a tap gesture.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member Turn(UITestControl, Double) Perform a turn gesture.
Public methodStatic member Turn(Point, Point, Double) Perform a turn gesture.
Public methodStatic member Turn(UITestControl, Point, Point, Double) Perform a turn gesture.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace