Click or drag to resize
Ranorex

ValidateAttribute Method (RepoItemInfo, String, Object)

Validates if the attribute of the element for the specified repository item matches a specific value.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void Attribute(
	RepoItemInfo itemInfo,
	string name,
	Object value
)

Parameters

itemInfo
Type: Ranorex.Core.RepositoryRepoItemInfo
The RepoItemInfo object for the repository item.
name
Type: SystemString
The name of the attribute to validate.
value
Type: SystemObject
The value of the attribute to match.
Exceptions
ExceptionCondition
ValidationExceptionIf the validation fails.
See Also