notifyiconwpf 和 GUI 自动化
notifyiconwpf and GUI automation
我有一个应用程序使用这种我需要自动化的应用程序类型。不幸的是,应用程序 window 对于我的自动化工具是不可见的。是否有解决此问题的建议方法?我正在使用 pywinuto 进行自动化。我什至无法检查此应用程序的 window 数据。
编辑:
from pywinauto import Application
from pywinauto import taskbar
app = Application().start("path/to/my/app")
#make the window visible
taskbar.ClickHiddenSystemTrayIcon("My App")
#When I query the number of windows the app has.
len(app.Windows())
#I get zero windows. There should be at least one window
#because the window is currently visible.
我也尝试了 findwindow 方法,我可以获得 WindowSpecification 但它没有连接到任何 window.
为了使此应用可自动化,开发人员必须根据命令行开关有条件地将 NotifyIconWPF 包装在标准 window 中。完成此操作后,pywinauto 就可以访问此应用程序的 windows。在我看来,它像 Caliburn Micro,故意禁用此 window class.
的可访问性
我有一个应用程序使用这种我需要自动化的应用程序类型。不幸的是,应用程序 window 对于我的自动化工具是不可见的。是否有解决此问题的建议方法?我正在使用 pywinuto 进行自动化。我什至无法检查此应用程序的 window 数据。
编辑:
from pywinauto import Application
from pywinauto import taskbar
app = Application().start("path/to/my/app")
#make the window visible
taskbar.ClickHiddenSystemTrayIcon("My App")
#When I query the number of windows the app has.
len(app.Windows())
#I get zero windows. There should be at least one window
#because the window is currently visible.
我也尝试了 findwindow 方法,我可以获得 WindowSpecification 但它没有连接到任何 window.
为了使此应用可自动化,开发人员必须根据命令行开关有条件地将 NotifyIconWPF 包装在标准 window 中。完成此操作后,pywinauto 就可以访问此应用程序的 windows。在我看来,它像 Caliburn Micro,故意禁用此 window class.
的可访问性