Click or drag to resize
Ranorex

ValidateNotExists Method (RxPath, Duration, String, Boolean)

Validates if the element for the specified path does not exist.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static bool NotExists(
	RxPath path,
	Duration searchTimeout,
	string message,
	bool exceptionOnFail
)

Parameters

path
Type: Ranorex.CoreRxPath
The path to validate.
searchTimeout
Type: RanorexDuration
The time to keep looking for an element matching the path.
message
Type: SystemString
The message to log. "{0}" is replaced by the string representation of the path.
exceptionOnFail
Type: SystemBoolean
A value specifying if an exception should be thrown if the validation fails.

Return Value

Type: Boolean
True if the element for the path does not exist; otherwise false.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails and exceptionOnFail is true.
See Also