由于找不到目标应用程序,我的XCUITest将在一个屏幕上失败:
有人可以在这里提出一些建议吗?我不知道第一次进入该屏幕时脚本仍然可以找到该应用程序,但是几秒钟后,它找不到?非常感谢!
------------这是日志-----------
t = 22.83s Tap Target Application 'com.ss.bbapp'
t = 22.83s Wait for com.ss.bbapp to idle
t = 22.89s Find the Target Application 'com.ss.bbapp'
t = 23.98s Find the Target Application 'com.ss.bbapp' (retry 1)
t = 25.04s Find the Target Application 'com.ss.bbapp' (retry 2)
t = 25.21s Assertion Failure: SearchScreen.swift:219: Error getting main window kAXErrorServerNotFound
t = 25.25s Tear Down