RanorexRanorex Documentation
Exists Method (path, searchTimeout, message, exceptionOnFail)
NamespacesRanorexValidateExists(RxPath, Duration, String, Boolean)
Validates if the element for the specified path exists.
Declaration Syntax
C#Visual BasicVisual C++
public static bool Exists(
	RxPath path,
	Duration searchTimeout,
	string message,
	bool exceptionOnFail
)
Public Shared Function Exists ( 
	path As RxPath,
	searchTimeout As Duration,
	message As String,
	exceptionOnFail As Boolean
) As Boolean
public:
static bool Exists(
	RxPath^ path, 
	Duration^ searchTimeout, 
	String^ message, 
	bool exceptionOnFail
)
Parameters
path (RxPath)
The path to validate.
searchTimeout (Duration)
The time to keep looking for an element matching the path.
message (String)
The message to log. "{0}" is replaced by the string representation of the path.
exceptionOnFail (Boolean)
A value specifying if an exception should be thrown if the validation fails.
Return Value
Boolean
True if the element for the path exists; otherwise false.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails and exceptionOnFail is true.

Assembly: Ranorex.Core (Module: Ranorex.Core.dll) Version: 4.0.4.23593 (4.0.4.23593)