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的经验

更多相关文章

  1. UNIX-LINUX编程实践教程->第八章->实例代码注解->写一个简单的sh
  2. Linux下objdump查看C程序编译后的汇编代码
  3. fedora(linux)创建系统服务 程序开机自启 后台运行
  4. 获取Android应用程序的Linux UID
  5. 设置查看linux 造成程序Core dumped 的函数调用层次
  6. iptables:传统的Linux防火墙管理程序
  7. linux socket 程序被ctrl+c或者异常终止,再次起程序时提示该端口
  8. Linux实用程序编写了一个matlab .mat文件
  9. 修复linux grub引导程序

随机推荐

  1. Android(安卓)Studio删除缓存的依赖库
  2. Android加载大图Bitmap发生OOM(Out Of Mem
  3. Android(安卓)数据漫游默认值的修改方法
  4. Android启动流程分析(十) action的执行和
  5. [Android]Android Studio获取开发版和发
  6. Android(安卓)unity3d 输入框
  7. android studio 1.5.1 创建java项目
  8. Android Animation动画 控制动画的执行效
  9. android 2.3 r1 中文 api (58) ―― TabH
  10. Android 布局属性全解(初学者必学)