Click or drag to resize
Ranorex

ValidateAttributeContains Method (RepoItemInfo, String, String)

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

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void AttributeContains(
	RepoItemInfo itemInfo,
	string name,
	string 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: SystemString
The value of the attribute to contain.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf value is null.
ValidationExceptionIf the validation fails.
See Also