Gets a standard attribute value from an element. Supports common attributes like: id, name, class, text, value, enabled, visible, etc.
public static string? GetAttribute(Control element, string attributeName)
The element to query.
The attribute name.