 | IElementInvokeAction Method |
Invokes an action on the element.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
SyntaxObject InvokeAction(
string name,
params Object[] args
)
Function InvokeAction (
name As String,
ParamArray args As Object()
) As Object
Parameters
- name
- Type: SystemString
The name of the action to invoke. - args
- Type: SystemObject
The list of parameters for the action.
Return Value
Type:
ObjectThe invocation result.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If name is null. |
| ActionFailedException | Thrown if invoking the action failed. |
RemarksThe types of the parameters and return value are as defined by the
ActionDescriptor.
See Also