public static void AppendValue(AutomationElement element, string value) { StringBuilder sb = new StringBuilder(); sb.Append(AutomationPatternHelper.GetValuePattern(element).Current.Value); sb.Append(value); SetValue(element, sb.ToString()); }
public static void SetValue(AutomationElement element, string value) { AutomationPatternHelper.GetValuePattern(element).SetValue(value); }
public static string GetValue(AutomationElement element) { ValuePattern currentPattern = AutomationPatternHelper.GetValuePattern(element); return(currentPattern.Current.Value); }