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)
Syntax
'Declaration
Public MustOverride Sub Click ( _
control As UITechnologyElement, _
button As MouseButtons, _
modifierKeys As ModifierKeys, _
relativeCoordinate As Point _
)
public abstract void Click(
UITechnologyElement control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
)
public:
virtual void Click(
UITechnologyElement^ control,
MouseButtons button,
ModifierKeys modifierKeys,
Point relativeCoordinate
) abstract
abstract Click :
control:UITechnologyElement *
button:MouseButtons *
modifierKeys:ModifierKeys *
relativeCoordinate:Point -> unit
public abstract function Click(
control : UITechnologyElement,
button : MouseButtons,
modifierKeys : ModifierKeys,
relativeCoordinate : Point
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementControl to be clicked.
button
Type: MouseButtonsMouse button to click.
modifierKeys
Type: ModifierKeysModifier keys to be pressed while clicking.
relativeCoordinate
Type: PointCo-ordinates relative to the control. If control is null, it is taken as the absolute coordinate
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.