Show Value of all available Attributes for a given UI element

Hello @mdagosta

You’ll get element’s attribute names with element.Atrributes. You can then get attribute values by name with element.Get(name).

ForEach attr in element.Attributes (attr is a String)

  • Assign (Object)
    value = element.Get(attr)

  • LogMessage
    String.Format("{0} ({1}): {2}", attr, value.GetType.ToString, value.ToString)

If you want the attribute of your browser element, look for browser.Element.Attributes.

7 Likes