swift - 获取主窗口时出错 kAXErrorServerNotFound - 找不到目标应用程序
问题描述
由于找不到目标应用程序,我的 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
解决方案
推荐阅读
- java - M1 MacOS 上的 Hbase shell 错误:fstat unimplemented unsupported or native support failed to load
- r - R在ifelse中按组改变一列
- angular - Angular 调用 Spring Boot index.html
- typescript - 使用 Typescript 在 Mongoose 中创建新 Schema 时,通用 Schema 类型会做什么?
- image-processing - Python OpevCV,尝试在 Sobel 输出图像上使用 findContours
- java - Flink 流顺序
- c# - SKElement - 为图像创建 xy 滚动条
- c# - 在 c# 中给出 local_address 和 port_number 时如何获取进程 ID?
- javascript - 如何在 .NET 核心(cshtml)的 HTML 表中显示模型中的数据?
- mysql - 在 MySQL 中查询需要很长时间