Condividi tramite


Metodo Gesture.Swipe (UITestControl, UITestGestureDirection, Int32)

Eseguire uno spostamento del punto esclamativo che è una diapositiva rapida di un dito per un breve tratto. Ad esempio, la schermata tramite un messaggio di posta elettronica nella cartella posta in arrivo di essa o un punto esclamativo si scola su una sezione per selezionarlo.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Sintassi

'Dichiarazione
Public Shared Sub Swipe ( _
    control As UITestControl, _
    swipeDirection As UITestGestureDirection, _
    swipeLength As Integer _
)
public static void Swipe(
    UITestControl control,
    UITestGestureDirection swipeDirection,
    int swipeLength
)
public:
static void Swipe(
    UITestControl^ control, 
    UITestGestureDirection swipeDirection, 
    int swipeLength
)
static member Swipe : 
        control:UITestControl * 
        swipeDirection:UITestGestureDirection * 
        swipeLength:int -> unit
public static function Swipe(
    control : UITestControl, 
    swipeDirection : UITestGestureDirection, 
    swipeLength : int
)

Parametri

  • swipeLength
    Tipo: Int32

    La lunghezza alla in pixel.

Note

La riproduzione di un movimento della schermata dipende dalla risoluzione dello schermo. Se la risoluzione cambia, i parametri possono essere necessario essere modificato.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Gesture Classe

Overload Swipe

Spazio dei nomi Microsoft.VisualStudio.TestTools.UITesting