Click or drag to resize
Ranorex

MouseClick Method (Element, MouseButtons, Location, Duration)

Clicks on the element with the specified mouse buttons at a given location.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void Click(
	Element element,
	MouseButtons buttons,
	Location location,
	Duration moveTime
)

Parameters

element
Type: Ranorex.CoreElement
The element to click.
buttons
Type: System.Windows.FormsMouseButtons
A bit-wise combination of MouseButtons values that specify the mouse buttons for this action.
location
Type: RanorexLocation
The location to click at.
moveTime
Type: RanorexDuration
The time after which the mouse should be at the specified position.
See Also