I am trying to use atPosition in the way I see it used in various answers on StackOverflow:
Espresso.onView(withId(R.id.rv_feeds))
.check(matches(atPosition(0, hasDescendant(withText("Test text")))));
Android Studio finds all imports needed except for atPosition. Am I perhaps missing a needed gradle import?
testImplementation "androidx.test.ext:junit-ktx:1.1.3"
testImplementation "androidx.test:core-ktx:1.4.0"
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation "androidx.test:core:1.4.0"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation "androidx.test.espresso:espresso-contrib:3.4.0"
androidTestImplementation "androidx.test.ext:junit-ktx:1.1.3"
androidTestUtil 'androidx.test:orchestrator:1.4.0'
Thanks.