【发布时间】:2021-02-18 21:21:47
【问题描述】:
我正在尝试自动化我们现有流程中的几个步骤。我需要与 tableau 交互 2 个步骤,我只想按下这些按钮。
我遵循 pywinauto 文档提供的记事本示例,但是当我尝试选择子菜单选项时,它一直失败。
dlg.menu_select('File') 有效
dlg.menu_select('File -> Open') 不起作用
dlg.menu_select('File -> Open...') 不起作用
TimeoutError: 超时
# Using .Server because .File gives me pdf info. Still a menu item.
dlg.Server.print_control_identifiers()
控制标识符:
静态 - “到服务器”(L165、T685、R403、B711) ['到服务器静态','静态','到服务器'] child_window(title="To a Server", control_type="Text")
【问题讨论】:
标签: python-3.x pywinauto