public static string UIElementString(UIElement uie)
{
try
{
return String.Format("Name {0} Hash {1} HasText {2} Text {3} Visible {4} Enabled {5}",
uie.Name, string.Format("0x{0:X}", uie.Hash), uie.HasText, uie.Text, uie.IsVisible, uie.IsEnabled);
}
catch (Exception ex)
{
return String.Format("Exception Occured!\r\n{0}", ex.Message);
}
}