Пример #1
0
        public void HandleCommandButton(ref int hwnd, ref string winText, ref string clsName, ref string pText)
        {
            int r = GUITestActions.FindGUILike(ref hwnd, 0, ref winText, ref clsName, ref pText);

            GUITestActions.CenterMouseOn(hwnd);
            GUITestActions.ClickMouse(MonkeyButtons.btcLeft, 0, 0, 0, 0);
        }
Пример #2
0
        public void HandleTextBox(ref int hwnd, ref string winText, ref string clsName, ref string pText)
        {
            int r = GUITestActions.FindGUILike(ref hwnd, 0, ref winText, ref clsName, ref pText);

            GUITestActions.CenterMouseOn(hwnd);
            GUITestActions.MoveMouseInsideHwnd(hwnd, RectPosition.MiddleTop);
            GUITestActions.ClickMouse(MonkeyButtons.btcLeft, 0, 0, 0, 0);
        }