Click or drag to resize
Ranorex

ValidateExists Method (RepoItemInfo, String, ValidateOptions)

Validates if the element for the specified repository item exists.

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

Parameters

itemInfo
Type: Ranorex.Core.RepositoryRepoItemInfo
The RepoItemInfo object for the repository item.
message
Type: SystemString
The message to log. "{0}" is replaced by the name of the itemInfo object.
options
Type: RanorexValidateOptions
Additional ValidateOptions for this validation action.

Return Value

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