public static void ElementClick(AutomationElement element, string MouseButton) { MouseToElem(element); Thread.Sleep(100); MouseControl.MouseClick(MouseButton); }
public static void MouseToElem(AutomationElement element) { MousePoint point = ClickablePoint(element); MouseControl.SetCursorPosition(point.Xp, point.Yp); }