yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.3k stars 462 forks source link

调用PageDown滚动之后,getChildren()内部分可见控件的Rect为0,0,0,0 ,但是重新运行一次,Rect又正常,请问这是什么原因呢,该怎么处理? #242

Open UshioYu opened 1 year ago

yinkaisheng commented 1 year ago

不太清楚,没遇到过

UshioYu commented 1 year ago

发现一个临时解决方案:

翻页后,数据有延迟,需要最小化最大化切一下之后,数据才会同步,原因未知

self.pyWindow.Minimize() self.pyWindow.Maximize() self.pyWindow.Restore()