We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Playback.Wait Method

Makes the playback pause for a specified time.

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

public static int Wait(
	int thinkTimeMilliseconds


Type: Int32

The wait duration in milliseconds.

Return Value

Type: Int32
The actual wait duration.

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.