我正在尝试将水平滚动条的值从 -1 更改为 -2。我可以访问它..但接下来我必须更改它的值..
AutomationElement _sideBar = _ClickButtonElement.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.ClassNameProperty, "WindowsForms10.SCROLLBAR.app.0.378734a"));
_clickButtonElement 是滚动条父窗口的 AutomationElement。