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

Mouse.MoveScrollWheel Method (UITestControl, Int32)

Scrolls the mouse wheel on the specified control the specified number of times.

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

public static void MoveScrollWheel(
	UITestControl control,
	int wheelMoveCount


Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
UITestControl to scroll.
Type: System.Int32
Number of mouse wheel scrolls.

The direction of the wheel is determined by the sign of wheelMoveCount. Positive values indicate forward mouse scrolling; negative values indicate backward mouse scrolling.