-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码调用,时不时报错,微信版本3.9.11.17 #55
Comments
这个问题比较奇怪,因为我从来没遇到过这个问题,而且也不是能稳定出现的错误。建议再观察一下是否有什么出错的迹象。 |
我这挺经常发生。。我是使用ApsScheduler定时任务,每小时selenium打开浏览器截图,然后微信发送截图。我发现微信从最小化到获取窗口时,比较大概率报这个错,微信一直打开窗口就比较少。会不会是获取微信窗口后,马上寻找搜索框,间隔太短,导致找不到?我这出现也比较玄乎。我现在捕获这个异常,重试一次send_file,倒是每次重试时都能找到搜索框正常发送。 |
有可能有这个问题。我觉得可以人为加一个sleep函数,在寻找搜索框之前短暂等待一段时间,也许可以解决这个问题。 |
我在获取微信窗口后睡眠了几秒,再看看效果 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
报错信息:wx_ui_auto_wechat.py[30] click -> Find Control Timeout(10s): {Depth: 8, Name: '搜索', ControlType: EditControl}
请up帮忙查看下。。。
The text was updated successfully, but these errors were encountered: