Winium.StoreApps.CodedUITestProject.WiniumElement.GetAttribute C# (CSharp) Method

GetAttribute() public method

public GetAttribute ( string attributeName ) : string
attributeName string
return string
        public string GetAttribute(string attributeName)
        {
            PropertyInfo property = this.AutomationElement.Current.GetType().GetRuntimeProperty(attributeName);
            object value = property.GetValue(this.AutomationElement.Current);

            return value.ToString();
        }