Click or drag to resize
Ranorex

IElementInvokeAction Method

Invokes an action on the element.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
Object InvokeAction(
	string name,
	params Object[] args
)

Parameters

name
Type: SystemString
The name of the action to invoke.
args
Type: SystemObject
The list of parameters for the action.

Return Value

Type: Object
The invocation result.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf name is null.
ActionFailedExceptionThrown if invoking the action failed.
Remarks
The types of the parameters and return value are as defined by the ActionDescriptor.
See Also