Export (0) Print
Expand All

Mouse.Click Method (MouseButtons, ModifierKeys, Point)

Clicks the specified mouse button while holding the specified modifier keys at the specified location.

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

public static void Click(
	MouseButtons button,
	ModifierKeys modifierKeys,
	Point screenCoordinate
)

Parameters

button
Type: MouseButtons

MouseButtons to click.

modifierKeys
Type: ModifierKeys

ModifierKeys to be pressed while clicking.

screenCoordinate
Type: Point

Point on the screen to click.

Show:
© 2015 Microsoft