/// <summary> /// This SetValue method attempts to Click the center of the element and send keys with a Keyboard instance. /// </summary> /// <param name="element"></param> /// <param name="value"></param> /// <returns></returns> public static IUIAutomationElement xtSetValue3(this IUIAutomationElement element, string value) { element.xtSetValue2(""); Thread.Sleep(100); element.xtFocus().xtClickCenterOfBounds(); Thread.Sleep(100); Keyboard.Instance.Enter(value); Thread.Sleep(10); Keyboard.Instance.PressSpecialKey(TestStack.White.WindowsAPI.KeyboardInput.SpecialKeys.TAB); return(element); }