public static IUiElement PerformRefresh(this IUiElement element) { try { return AutomationFactory.GetUiElement(element.GetSourceElement()); } catch (Exception) { return null; // throw; } } #endregion Refresh