我有一个窗口应用程序,其中几个按钮显示为窗格在UISPY。
AutomationElement
一般可访问性
AccessKey: ""
AcceleratorKey: ""
IsKeyboardFocusable: "True"
LabeledBy: "(null)"
HelpText: ""状态
IsEnabled: "True"
HasKeyboardFocus: "False"识别
ClassName: "WindowsForms10.Window.8.app.0.33c0d9d"
ControlType: "ControlType.Pane"
Culture: "(null)"
AutomationId: "2624504"
LocalizedControlType: "pane"
Name: "SAVE"
ProcessId: "6892 (OATDT.ATA.SP.Home)"
RuntimeId: "42 2624504"
IsPassword: "False"
IsControlElement: "True"
IsContentElement: "True"可见性
BoundingRectangle: "(-31471, -31598, 104, 23)"
ClickablePoint: "(null)"
IsOffscreen: "True"ControlPatterns
如何获得该窗格并单击该窗格?有谁能帮忙吗?
发布于 2014-04-23 17:29:31
我想你可以试试这样的东西
var pane = window.Get(SearchCriteria.ByAutomationId("2624504"));
pane.Click();这对我也同样有效。
发布于 2013-09-26 17:00:57
基本上,窗格是不公开自动化模式或具有特定自动化类型的控件。
您仍然可以获得边界等,然后单击控件,但白色不能像其他控件那样为窗格提供良好的高级抽象
https://stackoverflow.com/questions/16909921
复制相似问题