Click or drag to resize
Ranorex

ValidateExists Method (RxPath, Duration, String, ValidateOptions)

Validates if the element for the specified path exists.

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

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.
options
Type: RanorexValidateOptions
Additional ValidateOptions for this validation action.

Return Value

Type: Boolean
True if the element for the path exists; otherwise false.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails and options.ExceptionOnFail is true.
See Also