我开始使用 Espresso,运行我的基本测试。现在想弄清楚如何检查我的编辑文本是否具有特定的提示文本?谢谢。
onView(withId(R.id.locationInput)).check(matches...?)
Since 浓缩咖啡2.0 https://developer.android.com/training/testing/espresso/cheat-sheet只需使用内部视图匹配器 withHint:
onView(withId(R.id.locationInput)).check(matches(withHint("your_hint")))
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)