问题描述
我在应用中有两个文本,我想比较这些文本。我已经用 viewinteraction 方法定义了对象。然后,我想比较这些视图交互。我怎么能比较?我没有找到任何解决方案。我的代码示例:
ViewInteraction textView3 = onView(
allOf(withId(R.id.title),withParent(allOf(withId(R.id.topBar),withParent(isinstanceOf.<View>instanceOf(android.widget.RelativeLayout.class)))),isdisplayed()));
ViewInteraction textView = onView(
allOf(withId(R.id.title),isdisplayed()));
??? textView3.check(matches(textView));
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)