Esempio n. 1
0
 public static void ElementClick(AutomationElement element, string MouseButton)
 {
     MouseToElem(element);
     Thread.Sleep(100);
     MouseControl.MouseClick(MouseButton);
 }
Esempio n. 2
0
        public static void MouseToElem(AutomationElement element)
        {
            MousePoint point = ClickablePoint(element);

            MouseControl.SetCursorPosition(point.Xp, point.Yp);
        }