我在下面写代码:
app = Application().start("notepad.exe")
app.Notepad.menu_select("Help->About Notepad")
window = app.top_window()
window.print_control_identifiers()
但它不显示关于记事本视图的确定按钮信息。
它只显示下面的信息:
Starting test: EmptyProject.Test.Test
20191219 16:37:39.197 : INFO : Control Identifiers:
Dialog - 'About Notepad' (L1019, T401, R1610, B930)
['About NotepadDialog', 'Dialog', 'About Notepad']
child_window(title="About Notepad", class_name="#32770")
|
| Static - '' (L1085, T543, R1582, B545)
| ['Static', 'About NotepadStatic', 'Static0', 'Static1', 'About NotepadStatic0', 'About NotepadStatic1']
| child_window(class_name="Static")
|
| Static - '' (L1079, T563, R1116, B603)
| ['Static2', 'About NotepadStatic2']
| child_window(class_name="Static")
|
| Static - 'Microsoft Windows' (L1128, T563, R1531, B583)
| ['Static3', 'Microsoft Windows', 'Microsoft WindowsStatic']
| child_window(title="Microsoft Windows", class_name="Static")
|
| Static - 'Version 1809 (OS Build 17763.557)' (L1128, T583, R1592, B603)
| ['Static4', 'Version 1809 (OS Build 17763.557)', 'Version 1809 (OS Build 17763.557)Static']
| child_window(title="Version 1809 (OS Build 17763.557)", class_name="Static")
|
| Static - '© 2018 Microsoft Corporation. All rights reserved.' (L1128, T603, R1548, B623)
| ['© 2018 Microsoft Corporation. All rights reserved.', '© 2018 Microsoft Corporation. All rights reserved.Static', 'Static5', '© 2018 Microsoft Corporation. All rights reserved.Static0', '© 2018 Microsoft Corporation. All rights reserved.Static1']
| child_window(title="© 2018 Microsoft Corporation. All rights reserved.", class_name="Static")
|
| Static - '' (L1128, T623, R1548, B643)
| ['© 2018 Microsoft Corporation. All rights reserved.Static2', 'Static6']
| child_window(class_name="Static")
|
| Static - 'The Windows 10 Enterprise operating system and its user interface are protected by trademark and other pending or existing intellectual property rights in the United States and other countries/regions.' (L1128, T643, R1548, B723)
| ['Static7', 'The Windows 10 Enterprise operating system and its user interface are protected by trademark and other pending or existing intellectual property rights in the United <truncated>
Ending test: EmptyProject.Test.Test