Click or drag to resize
Ranorex

ValidateAttributeNotContains Method (IElement, String, String, String)

Validates if the attribute of the specified element does not contain the specific value.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void AttributeNotContains(
	IElement element,
	string name,
	string value,
	string message
)

Parameters

element
Type: Ranorex.CoreIElement
The element to validate.
name
Type: SystemString
The name of the attribute to validate.
value
Type: SystemString
The value of the attribute to contain.
message
Type: SystemString
The message to log. "{0}" is replaced by the string representation of the element, "{1}" by the attribute name, "{2}" by the string representation of the actual attribute value (or "(not retrieved)" if the attribute could not be retrieved), and "{3}" by the string representation of the expected value.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf value is null.
ValidationExceptionIf the validation fails.
See Also