Python-UIAutomation-for-Windows
Python-UIAutomation-for-Windows copied to clipboard
(Donot use 3.7.6,3.8.1):snake:Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
## 环境 - python 3.6.6 - win7 - uiautomation~=2.0.9 - 打开QQ登陆框 ## 定位打印的元素 ``` 2020-12-27 12:41:41.194 automation.py[75] main -> Starts, Current Cursor Position: (621, 433) ControlType: PaneControl ClassName: #32769 AutomationId:...
程序问题
我用unittest运行测试用例, 会出现这种错误ele = _AutomationClient.instance().ViewWalker.GetFirstChildElement(self.Element) _ctypes.COMError: (-2147024891, '拒绝访问。', (None, None, None, 0, None))
Hello @yinkaisheng, many thanks for all your efforts! Started automation.py with parameters -t10 -c, then… Selected with cursor "Start" tab: ControlType: TabItemControl ClassName: NetUIRibbonTab AutomationId: Rect: (1979,144,2031,167)[52x23] Name: Start Handle:...
目前有个软件的界面中表格控件中单元格内嵌套的控件是通过代码的方式添加,步骤类似https://www.pianshen.com/article/2939848646/。 我试图用ui automation库打印控件树,只能看到单元格那一层(DataItemControl,SupportedPattern: InvokePattern LegacyIAccessiblePattern),看不到单元格内的控件信息。用Inspect工具,抓取单元格内勾选框,勾选和不勾选状态下,Inspect工具抓到的信息没有区别。还试用了pywinauto库,同样只能获取单元格,无法获取单元格内控件信息。 请问,这种情况,有什么办法可以抓到单元格内控件并进行操作?
录制工具
您好,文档中似乎没有提到和录制相关的部分,有什么录制软件可以推荐的吗?能够尽可能方便地生成相应的python脚本的那种。谢谢~ BTW:不知道您是否用过截图软件snipaste,似乎在截图时检测程序的UI元素的原理和这个工具是一样的。
There is a direct UI product. Can you use this test? If not, is there any other good solution?
环境:python3.6 uiautomation 1.1.8 某银行网银客户端 目的: 我们制作了一个拾取程序,来进行uia拾取。并调用uiautomation模块,根据拾取结果, 实现 点击某银行网银客户端初始页面的账户输入框 问题描述: 打开银行网银客户端,根据拾取结果,可以找到元素并点击。 此时如果重启客户端,根据拾取结果,则点击失败。 如果再次拾取(可以确认2次拾取结果一致),运行程序,则点击成功。 尝试在打开客户端后,等待10秒,也无法找到元素,点击失败。 尝试SetGlobalSearchTimeOut(30) 也找不到元素。 元素的拾取结果是: {"selector":[{"ControlType":"编辑","ControlTypeID":"0xC354","Index":"1"}, {"ControlType":"","ControlTypeID":"0xC369","Index":"2"}, {"ControlType":"文档","ControlTypeID":"0xC36E","Index":"1"}, {"ControlType":"窗口","ControlTypeID":"0xC370","Index":"1"}, {"ControlType":"窗格","ControlTypeID":"0xC371","Index":"1"}, {"ControlType":"窗格","ControlTypeID":"0xC371","Index":"2"}]} 可以确认每次打开客户端,输入框的拾取结果不会变化。 报错信息: File "D:\Program Files\Python\lib\uiautomation\uiautomation.py", line 2613, in...
老师,intelliJ开发的GUI界面或是能否对Android Studio IDE这种应用做自动化操作? 当前这个可以操作eclipse 窗口,是否后续有能支持上面说的?或是有没有办法对intelliJ能做自动化操作的方案,求指点,谢谢!