 | ElementInvokeActionWithText Method |
Invokes an action on the element.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic Object InvokeActionWithText(
string name,
params string[] args
)
Public Function InvokeActionWithText (
name As String,
ParamArray args As String()
) As Object
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:
ObjectThe invocation result.
Implements
IElementInvokeActionWithText(String, String)
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If name is null. |
| ActionFailedException | Thrown if invoking the action failed, or argument type conversion failed. |
RemarksThe string values of the parameters are converted to the types defined by the
ActionDescriptor.
See Also