Playback.Wait Method

Makes the playback pause for a specified time.

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

Syntax

'Declaration
Public Shared Function Wait ( _
    thinkTimeMilliseconds As Integer _
) As Integer
public static int Wait(
    int thinkTimeMilliseconds
)
public:
static int Wait(
    int thinkTimeMilliseconds
)
static member Wait : 
        thinkTimeMilliseconds:int -> int
public static function Wait(
    thinkTimeMilliseconds : int
) : int

Parameters

  • thinkTimeMilliseconds
    Type: Int32

    The wait duration in milliseconds.

Return Value

Type: Int32
The actual wait duration.

Remarks

The actual delay is calculated by multiplying thinkTimeMilliseconds by ThinkTimeMultiplier, to increase or decrease the delay. However, the delay will not be longer than DelayBetweenAction.

.NET Framework Security

See Also

Reference

Playback Class

Microsoft.VisualStudio.TestTools.UITesting Namespace