Apple Watch 与主屏幕的交互
我正在自动化 Apple Watch ui 测试,目前我遇到了与 Apple Watch 主屏幕交互的问题(例如点击、按下、滚动等) 我知道测试是在被测应用程序的沙箱中进行的,但是当被测应用程序在后台运行时,我需要与主屏幕上的元素进行交互。 我知道 Appium 通过“com.apple.springboard”与 iPhone 的主屏幕做了类似的事情,该应用程序管理 iPhone 的主屏幕,但是 Apple Watch 呢?有什么方法可以与 Apple Watch 主屏幕互动吗?
I am automating Apple Watch ui testing and currently I stuck with the problem interacting with Apple Watch Home Screen (e.g. tap, press, scroll, etc.)
I know that testing is happening in the sandbox of the app under test, but I need to interact with the elements on Home Screen when the app under test is running on the background.
I know that Appium does similar thing to iPhone's Home Screen via "com.apple.springboard" which is the app, that manages iPhone's Home Screen, but what about Apple Watch? Is there a way I can interact with Apple Watch Home Screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您提出的有关 iOS 主屏幕的其他问题,手表可以与以下捆绑包标识符进行交互:
com.apple.BackBoard
、com.apple.BaseBoardUI
、 com.apple.PreBoard 和 com.apple.ReBoard。以下调试命令应向您显示可用于交互的内容:
Per the other question you have open regarding the iOS home screen, the watch can be interacted with the following bundle identifiers:
com.apple.BackBoard
,com.apple.BaseBoardUI
,com.apple.PreBoard
, andcom.apple.ReBoard
.The following debug command should show you what's available for interaction: