- 准备好环境启动Windows应用,应用可以正常启动,操作元素时报错Currently selected window has been closed
示例代码
报错截图
- 去Github下下查找对应issue WinAppDriver/FAQ.md
我们应用启动时也是有一个splash screen.
- 加上handle命令后,在splash screen页面能够获取current_handle,但是获取all handles时为空。且几秒跳转到main screen后,current_handle和all handles都无法获取到。导致无法使用switch_to handle去定位元素
不知道为什么handles就没有值了
请问同学老师们遇到过类似的问题么,或者有后续定位/解决的思路么T-T
有没有通过子进程启动界面,这app我们也没法测试,没有环境不好决定啥原因