 | ValidateAttributeContains Method (IElement, String, String) |
Validates if the attribute of the specified element contains a specific value.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static void AttributeContains(
IElement element,
string name,
string value
)
Public Shared Sub AttributeContains (
element As IElement,
name As String,
value As String
)
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.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | If value is null. |
| ValidationException | If the validation fails. |
See Also