Sets the value of an attribute.
| Exception | Condition |
|---|---|
| ArgumentNullException | If name is null. |
| SetAttributeFailedException | Thrown if setting the attribute value failed or the string value could not be converted to the attribute's type. |
![]() | Ranorex Documentation SetAttributeValue Method (name, value) Namespaces ► Ranorex.Core ► Element ► SetAttributeValue(String, String) |
| Exception | Condition |
|---|---|
| ArgumentNullException | If name is null. |
| SetAttributeFailedException | Thrown if setting the attribute value failed or the string value could not be converted to the attribute's type. |