gpt4 book ai didi

xcode - 界面测试失败

转载 作者:行者123 更新时间:2023-11-28 08:34:29 26 4
gpt4 key购买 nike

这是自动生成的代码。我没有修改它。

func testExample() {

let app = XCUIApplication()
let defaultStaticText = app.tables.staticTexts["Default"]
defaultStaticText.tap()
}

我得到的错误是:

UI Test Activity: Assertion Failure: UI Testing Failure - Failure getting list of active applications: AX error -25205

应用截图:

App screenshots displaying 1 app with screens. Table view with 3 options and sign up screen.

我在测试期间所做的只是点击顶部的默认行。我在模拟器中做到了这一点。错误出现在最后一行:defaultStaticText.tap()

最佳答案

您是否尝试过为“默认”和“默认配置”使用完全不同的名称?我想你会得到多个单元格
让 defaultStaticText = app.tables.staticTexts["Default"]

您可以从 here. 了解更多信息

关于xcode - 界面测试失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38183149/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com