UIAutomation.ExtensionMethodsElementCommon.PerformRefresh C# (CSharp) Method

PerformRefresh() public static method

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