Click or drag to resize
Ranorex

ElementInvokeActionWithText Method

Invokes an action on the element.

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

Parameters

name
Type: SystemString
The name of the action to invoke.
args
Type: SystemString
The list of parameters for the action, as strings.

Return Value

Type: Object
The invocation result.

Implements

IElementInvokeActionWithText(String, String)
Exceptions
ExceptionCondition
ArgumentNullExceptionIf name is null.
ActionFailedExceptionThrown if invoking the action failed, or argument type conversion failed.
Remarks
The string values of the parameters are converted to the types defined by the ActionDescriptor.
See Also