以下是我从代码中找出元素的代码
Drawing.Point location = (Drawing.Point)param.Args[1];
point = new System.Windows.Point(Convert.ToDouble(location.X), Convert.ToDouble(location.Y));
element = AutomationElement.FromPoint(point);
但是当我们从任务栏单击最小化窗口时会产生错误:
价值不在预期范围内