public static bool IsWPF(this AutomationElement el) { return(el.GetPropertyValue(AutomationElement.FrameworkIdProperty) as string == "WPF"); }