为什么带有后端uia的pywinauto无法识别某些qt元素?

时间:2019-01-21 12:28:56

标签: qt pywinauto

使用pywinauto版本0.6.5,我尝试自动执行一些qt按钮单击。连接到应用程序窗口后,print_ctrl_ids将显示与按钮无关的控件。

|
| TitleBar - ''    (L598, T165, R1340, B184)
| [u'', u'1', u'0', 'TitleBar']
|    |
|    | Menu - '系统'    (L580, T165, R598, B183)
|    | [u'Menu', u'\u7cfb\u7edfMenu', u'\u7cfb\u7edf', u'\u7cfb\u7edf1', u'\u
b\u7edf0']
|    | child_window(title="系统", auto_id="MenuBar", control_type="MenuBar")
|    |    |
|    |    | MenuItem - '系统'    (L580, T165, R598, B183)
|    |    | [u'\u7cfb\u7edfMenuItem', u'MenuItem', u'\u7cfb\u7edf2']
|    |    | child_window(title="系统", control_type="MenuItem")
|    |
|    | Button - '关闭'    (L1321, T164, R1341, B184)
|    | [u'\u5173\u95edButton', 'Button', u'\u5173\u95ed']
|    | child_window(title="关闭", control_type="Button")
|
| Custom - ''    (L580, T184, R1340, B853)
| ['Custom', u'Custom0', u'2', u'Custom1']
|    |
|    | Custom - ''    (L580, T184, R1340, B853)
|    | ['Custom', u'Custom0', u'2', u'Custom1']
|    |    |
|    |    | Custom - ''    (L580, T184, R1340, B514)
|    |    | [u'4', 'Custom3']
|    |    |    |
|    |    |    | Custom - ''    (L580, T461, R1340, B514)
|    |    |    | [u'5', 'Custom4']
|    |    |    |    |
|    |    |    |    | Custom - ''    (L652, T461, R1268, B514)
|    |    |    |    | [u'6', 'Custom5']
|    |    |
|    |    | Custom - ''    (L652, T550, R1098, B569)
|    |    | [u'7', 'Custom6']
|    |    |
|    |    | Custom - ''    (L652, T589, R1098, B647)
|    |    | [u'8', 'Custom7']
|    |    |
|    |    | Custom - ''    (L1158, T550, R1268, B660)
|    |    | [u'9', 'Custom8']
|    |    |
|    |    | Custom - ''    (L1158, T662, R1268, B710)
|    |    | [u'10', 'Custom9']

0 个答案:

没有答案