Information
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.

UITestActionExecutor::Click Method (UITechnologyElement^, MouseButtons, ModifierKeys, Point)

 

Click the default mouse button.

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

public:
virtual void Click(
	UITechnologyElement^ control,
	MouseButtons button,
	ModifierKeys modifierKeys,
	Point relativeCoordinate
) abstract

Parameters

control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension::UITechnologyElement^

Control to be clicked.

button
Type: System.Windows.Forms::MouseButtons

Mouse button to click.

modifierKeys
Type: System.Windows.Input::ModifierKeys

Modifier keys to be pressed while clicking.

relativeCoordinate
Type: System.Drawing::Point

Co-ordinates relative to the control. If control is null, it is taken as the absolute coordinate

Return to top
Show: