Click or drag to resize
Ranorex

ValidateNotExists Method (Element, String, Boolean)

Validates if the specified element does not exist.

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

Parameters

element
Type: Ranorex.CoreElement
The element to validate.
message
Type: SystemString
The message to log. "{0}" is replaced by the string representation of the element.
exceptionOnFail
Type: SystemBoolean
A value specifying if an exception should be thrown if the validation fails.

Return Value

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