【发布时间】:2023-03-18 22:43:01
【问题描述】:
【问题讨论】:
-
XCUITest 测试您的应用程序,而不是跳板。
-
应用程序经常使用跳板,因此将其用于自动化是完全有效的。
标签: ios xcode ios-simulator ios-ui-automation xcuitest
【问题讨论】:
标签: ios xcode ios-simulator ios-ui-automation xcuitest
跳板的捆绑 ID 是 com.apple.springboard。您可以像与任何其他应用程序一样与它进行交互。
let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard")
然后从那里开始。要发现它的功能,请进入调试会话并使用它。
【讨论】: