Delen via


Gesture Class

Contains static methods for performing Touch gestures.

Inheritance Hierarchy

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, Int32, UITestGestureDirection, Int32) Perform a flick gesture which is associated with quickly moving your finger in the direction you want resulting in a rapid scroll.
Public methodStatic member Flick(Point, Int32, Double, Int32) Perform a flick gesture which is associated with quickly moving your finger in the direction you want resulting in a rapid scroll.
Public methodStatic member Flick(UITestControl, Point, Int32, UITestGestureDirection, Int32) Perform a flick gesture which is associated with quickly moving your finger in the direction you want resulting in a rapid scroll.
Public methodStatic member Flick(UITestControl, Point, Int32, Double, Int32) Perform a flick gesture which is associated with quickly moving your finger in the direction you want resulting in a rapid scroll.
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, Int32) 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) 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, Int32) 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 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, Int32) 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, Int32) 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 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