使用 Robotium 检查片段是否存在 - Android
有谁知道使用 Robotium 检查片段是否存在的方法?
问候 RC
Is anyone aware of a way to check the existence of fragment using Robotium?
Regards
Rc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

有谁知道使用 Robotium 检查片段是否存在的方法?
问候 RC
Is anyone aware of a way to check the existence of fragment using Robotium?
Regards
Rc
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
我假设您想要查找您知道其活动或标签的片段是否存在。
首先在 Solo 上调用
getCurrentActivity()
,然后调用or(
如果您使用的是 v4 兼容性)
图书馆。这将搜索页面上的所有片段并返回它。如果您之前已标记过 Fragment,则还可以使用
findFragmentByTag()
。I'm assuming that you want to find the existence of a fragment that you know the activity or tag for.
first call
getCurrentActivity()
on Solo and then callor
if you're using the v4 compatibility
library. That will search all the fragments on the page and return it. You can also use
findFragmentByTag()
if you've previously tagged the Fragment.