You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WinError -2147221008] 尚未调用 CoInitialize。
Can not load UIAutomationCore.dll.
1, You may need to install Windows Update KB971513 if your OS is Windows XP, see https://github.com/yinkaisheng/WindowsUpdateKB971513ForIUIAutomation
2, you need to use an UIAutomationInitializerInThread object if use uiautomation in a thread, see demos/uiautomation_in_thread.py
一个很奇怪的现象,如果
写在自定义函数的外面就会报错,如下
如果写在函数里面就会正常运行。
这里我主要是寻找一个uwp应用的一个按钮,但是这个按钮没有name属性,也没有automationid属性,所以我是通过他的父类找到他的。代码如下:
The text was updated successfully, but these errors were encountered: