Click or drag to resize
Ranorex

JavaElementInvokeMethod Method (String, Object)

Invokes a public method on the remote Java object represented by this Element.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.Java (in Ranorex.Plugin.Java.dll) Version: 12.7.4-git.38314c06
Syntax
public Object InvokeMethod(
	string methodName,
	params Object[] args
)

Parameters

methodName
Type: SystemString
The name of method to invoke.
args
Type: SystemObject
A list of method arguments. (Supports string,int,long,bool,null).

Return Value

Type: Object
The value returned by the method or null if method has "void" return type.
See Also