任何人都可以提供一个如何从Inspector.exe应用程序中选择此特定元素的示例吗?
应用程序本身使用Worklight编译到APPX中,我正在尝试从中构建一些测试脚本。我可以使用FindElementByName登录,但是对于某些项目没有名称。
How found: Mouse move (518,826)
hwnd=0x000000000003171E 64bit class="Windows.UI.Core.CoreWindow" style=0x54000000 ex=0x280000
Name: "Job Plan *
Enter Job Plan"
ControlType: UIA_ButtonControlTypeId (0xC350)
LocalizedControlType: "button"
BoundingRectangle: {l:212 t:763 r:1907 b:857}
IsEnabled: true
IsOffscreen: false
IsKeyboardFocusable: false
HasKeyboardFocus: false
AccessKey: ""
ProcessId: 1524
RuntimeId: [2A.3171E.2.121EE]
AutomationId: "aw596c9c00_GroupItem"
FrameworkId: "InternetExplorer"
ProviderDescription: "[pid:1524,hwnd:0x0 Main(parent link):Microsoft: MSAA Proxy (unmanaged:uiautomationcore.dll)]"
AriaRole: "button"
AriaProperties: ""
LiveSettingProperty: Off (0)
IsPassword: false
IsRequiredForForm: false
IsDataValidForForm: true
HelpText: ""
Orientation: 0
LegacyIAccessible.ChildId: 0
LegacyIAccessible.DefaultAction: "Toggle"
LegacyIAccessible.Description: ""
LegacyIAccessible.Help: ""
LegacyIAccessible.KeyboardShortcut: ""
LegacyIAccessible.Name: "Job Plan *
Enter Job Plan"
LegacyIAccessible.Role: push button (0x2B)
LegacyIAccessible.State: normal (0x0)
LegacyIAccessible.Value: ""
IsAnnotationPatternAvailable: false
IsDragPatternAvailable: false
IsDockPatternAvailable: false
IsDropTargetPatternAvailable: false
IsExpandCollapsePatternAvailable: false
IsGridItemPatternAvailable: false
IsGridPatternAvailable: false
IsInvokePatternAvailable: true
IsItemContainerPatternAvailable: false
IsLegacyIAccessiblePatternAvailable: true
IsMultipleViewPatternAvailable: false
IsObjectModelPatternAvailable: false
IsRangeValuePatternAvailable: false
IsScrollItemPatternAvailable: true
IsScrollPatternAvailable: false
IsSelectionItemPatternAvailable: false
IsSelectionPatternAvailable: false
IsSpreadsheetItemPatternAvailable: false
IsSpreadsheetPatternAvailable: false
IsStylesPatternAvailable: false
IsSynchronizedInputPatternAvailable: false
IsTableItemPatternAvailable: false
IsTablePatternAvailable: false
IsTextChildPatternAvailable: true
IsTextEditPatternAvailable: false
IsTextPatternAvailable: false
IsTextPattern2Available: false
IsTogglePatternAvailable: false
IsTransformPatternAvailable: false
IsTransform2PatternAvailable: false
IsValuePatternAvailable: false
IsVirtualizedItemPatternAvailable: false
IsWindowPatternAvailable: false
IsCustomNavigationPatternAvailable: false
FirstChild: "Job Plan" text
LastChild: "Enter Job Plan" group
Next: [null]
Previous: "OMS event (Job Number) *" list item
Other Props: Object has no additional properties
Children: "Job Plan" text
"" group
"Enter Job Plan" group
Ancestors: "" list
"" pane
"Work Execution" pane
"" pane
"Work Execution" window
"Work Execution" window
"Desktop" pane
[ No Parent ]