LoginSignup
0
0

More than 3 years have passed since last update.

EspressoでRecyclerViewの任意のインデックスの要素にテキストが表示されているか調べる方法

Posted at
onView(withId(R.id.recyclerView)).check(
    matches(
        atPosition(
            0,
            hasDescendant(withText("ほげ"))
        )
    )
)

hasDescendant は子孫に指定されたmatcherの要素があるか。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0