Ejemplo n.º 1
0
 internal static IUiElement PerformTypeText(this IKeyboardInputHolder holder, string text)
 {
     holder.GetParentElement().MoveCursorToControlPosition();
     InputSimulator.Keyboard.TextEntry(text);
     return(holder.GetParentElement());
 }
Ejemplo n.º 2
0
 internal static IUiElement PerformTypeChar(this IKeyboardInputHolder holder, char character)
 {
     holder.GetParentElement().MoveCursorToControlPosition();
     InputSimulator.Keyboard.TextEntry(character);
     return(holder.GetParentElement());
 }
Ejemplo n.º 3
0
//        internal static IUiElement PerformKeyPressMultiple(this IKeyboardInputHolder holder, IEnumerable<VirtualKeyCode> keyCodes)
//        {
//            holder.GetParentElement().MoveCursorToControlPosition();
//            InputSimulator.Keyboard.KeyPress(keyCodes);
//            return holder.GetParentElement();
//        }

        internal static IUiElement PerformKeyUp(this IKeyboardInputHolder holder, VirtualKeyCode keyCode)
        {
            holder.GetParentElement().MoveCursorToControlPosition();
            InputSimulator.Keyboard.KeyUp(keyCode);
            return(holder.GetParentElement());
        }