The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
PlaybackSettings::DelayBetweenActions Property
Gets or sets the delay between actions in milliseconds.
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Legacy Code Example
public void ModifiedSimpleAppTest()
{
#region Variable Declarations
WpfButton uIStartButton = this.UIMainWindowWindow.UIStartButton;
WpfCheckBox uICheckBoxCheckBox = this.UIMainWindowWindow.UICheckBoxCheckBox;
WpfButton uICloseButton = this.UIMainWindowWindow.UIMainWindowTitleBar.UICloseButton;
#endregion
// Launch '%VisualStudioDir%\Projects\AddTwoNumbers\AddTwoNumbers\bin\Debug\AddTwoNumbers.exe'
ApplicationUnderTest uIMainWindowWindow = ApplicationUnderTest.Launch(this.SimpleAppTestParams.UIMainWindowWindowExePath, this.SimpleAppTestParams.UIMainWindowWindowAlternateExePath);
// Set delay between actions to 1 second. Add this code before any mouse, keyboard and SetProperty actions.
Playback.PlaybackSettings.DelayBetweenActions = 1000;
// Click 'Start' button
Mouse.Click(uIStartButton, new Point(27, 10));
uICheckBoxCheckBox.WaitForControlEnabled();
// Select 'CheckBox' check box
uICheckBoxCheckBox.Checked = this.SimpleAppTestParams.UICheckBoxCheckBoxChecked;
// Click 'Close' button
Mouse.Click(uICloseButton, new Point(15, 10));
}
Show: