适用于winform程序的UI自动化实现(python+uiautomation)
适用于winform程序的UI自动化实现(python+uiautomation)一、使用的工具和库定位工具:inspect(提取码:kvwx)、UISpy(提取码:ab0e)python库使用:subprocess(内置库,用于打开应用程序)uiautomation(pip install uiautomation安装)二、原理使用subprocess库打开应用程序,然后借助定位工具采集定位应用元素的信息,然后在定位到的元素上进行输入、点击、获取等一系列操作(通过uiautomation的方法实
原创
2021-12-30 14:29:05 ·
5327 阅读 ·
1 评论