【发布时间】:2016-10-07 01:57:09
【问题描述】:
点击打开facebook登录页面的按钮,点击完成按钮返回主视图控制器。
这是我录制得到的代码
override func setUp() {
super.setUp()
XCUIApplication().launch()
}
func testExample() {
let app = XCUIApplication()
app.buttons["Button"].tap()
app.buttons["Done"].tap()
}
但是当我运行记录时,它在testExample() 的第二行出现错误
这是错误:
UI Testing Failure - Failure getting list of active applications: AX error -25205
【问题讨论】:
-
在简单的两个选项卡式应用程序中遇到同样的问题,切换选项卡或点击元素或其他东西。
-
你有什么解决办法吗?
标签: ios swift xcode-ui-testing