Beispiel #1
0
        private static void Click(AutomationElement element, Func<Point> GetPoint)
        {
            element.ScrollToIfPossible();
            element.TryToFocus();

            var point = GetPoint();

            Cursor.Position = new System.Drawing.Point((int) point.X, (int) point.Y);
            Down();
            Up();
        }