Pywinauto:关闭系统对话框后丢失的树木信息
我有一个专有 uia 应用程序的菜单窗口,它会引发一个子窗口。该子窗口将弹出一个系统文件对话窗口。所有三个窗口都有完整的树信息,我可以通过 dump_tree() 显示这些信息。当系统文件对话框窗口关闭(因为文件被选择)并且焦点再次位于子窗口中时,树信息几乎为空(再次由 dump_tree() 检查),现在仅存在带有子窗口的树桩,没有任何控制元素。 Descendants() 也没有结果。我可以在删除之前“保存”树信息吗?由于丢失的树信息的连续性,Python 应用程序找不到任何按钮,我无法再控制专有应用程序。
I have a menu window of a propietary uia application which raises a subwindow. This subwindow raises a system file dialog window. All three windows have a full tree information which I can display by dump_tree(). When the system file dialog window is closed (because the file is selected) and the focus is again in the subwindow the tree information is nearly empty (again checked by dump_tree()), only the stump with the subwindow without any control elements exists now. Descendants() has no result neither. Can I 'save' the tree information before it is deleted? As consecuence of the lost tree information the python application doesn't find any button and I cant control the propietary application any more.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论