无法使用ClassName:“ WindowsForms10.BUTTON.app.0.141b42a_r9_ad1”来控制按钮。尝试自动化UI

时间:2018-09-04 16:45:40

标签: powershell microsoft-ui-automation

检查文件中的按钮:

How found:  Selected from tree...
Name:   "Install Service"
ControlType:    UIA_ButtonControlTypeId (0xC350)
LocalizedControlType:   "button"
BoundingRectangle:  {l:819 t:599 r:920 b:622}
IsEnabled:  true
IsOffscreen:    false
IsKeyboardFocusable:    true
HasKeyboardFocus:   false
AccessKey:  ""
ProcessId:  5924
RuntimeId:  [2A.1A50414]
AutomationId:   "btnInstallSvc"
FrameworkId:    "WinForm"
ClassName:  "WindowsForms10.BUTTON.app.0.141b42a_r9_ad1"
NativeWindowHandle: 0x1A50414
ProviderDescription:    "[pid:18028,providerId:0x1A50414 Main:Nested [pid:5924,providerId:0x1A50414 Main(parent link):Microsoft: MSAA Proxy (unmanaged:uiautomationcore.dll)]; Hwnd(parent link):Microsoft: HWND Proxy (unmanaged:uiautomationcore.dll)]"
IsPassword: false
HelpText:   ""

0 个答案:

没有答案