Example #1
0
        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());
        }
Example #2
0
 public static void SetValue(AutomationElement element, string value)
 {
     AutomationPatternHelper.GetValuePattern(element).SetValue(value);
 }
Example #3
0
        public static string GetValue(AutomationElement element)
        {
            ValuePattern currentPattern = AutomationPatternHelper.GetValuePattern(element);

            return(currentPattern.Current.Value);
        }