在Python中,如何在使用WPF的程序中自动控制UI?
I've been working on this Python program to try to do some automated testing. The problem is that up until recently, I've been able to use pywinauto just fine. Now, I have to control some programs that have their UI made with Windows Presentation Foundation (WPF). So far, I have been using the standard Python interpreter. However, now that I have to deal with this, it might mean having to port to IronPython.
我一直在研究这个Python程序,试图做一些自动化测试。问题是,直到最近,我已经能够使用pywinauto了。现在,我必须控制一些使用Windows Presentation Foundation(WPF)创建UI的程序。到目前为止,我一直在使用标准的Python解释器。但是,现在我必须处理这个问题,这可能意味着必须移植到IronPython。
Can someone tell me how I should go about automating the control of programs using WPF for their UI's when my automation program is written in Python?
当我的自动化程序是用Python编写的时候,有人可以告诉我如何使用WPF自动控制程序的UI吗?
1 个解决方案
#1
0
I assume you are trying to send Window Messages to the controls, or simulate key strokes.
我假设您正在尝试将窗口消息发送到控件,或模拟击键。
Have a look at this question:
看看这个问题:
Experiences with UI Automation and WPF
UI自动化和WPF的经验
更多相关文章
- UNIX-LINUX编程实践教程->第八章->实例代码注解->写一个简单的sh
- Linux下objdump查看C程序编译后的汇编代码
- fedora(linux)创建系统服务 程序开机自启 后台运行
- 获取Android应用程序的Linux UID
- 设置查看linux 造成程序Core dumped 的函数调用层次
- iptables:传统的Linux防火墙管理程序
- linux socket 程序被ctrl+c或者异常终止,再次起程序时提示该端口
- Linux实用程序编写了一个matlab .mat文件
- 修复linux grub引导程序