RanorexRanorex Documentation
NotExists Method (path, searchTimeout, message, exceptionOnFail)
NamespacesRanorexValidateNotExists(String, Duration, String, Boolean)
Validates if the element for the specified path does not exist.
Declaration Syntax
C#Visual BasicVisual C++
public static bool NotExists(
	string path,
	Duration searchTimeout,
	string message,
	bool exceptionOnFail
)
Public Shared Function NotExists ( _
	path As String, _
	searchTimeout As Duration, _
	message As String, _
	exceptionOnFail As Boolean _
) As Boolean
public:
static bool NotExists(
	String^ path, 
	Duration^ searchTimeout, 
	String^ message, 
	bool exceptionOnFail
)
Parameters
path (String)
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 path.
exceptionOnFail (Boolean)
A value specifying if an exception should be thrown if the validation fails.
Return Value
True if the path is not valid or the element for the path does not exist; otherwise false.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails and exceptionOnFail is true.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.3.22982 (4.0.3.22982)