There is a test method:
@Test public void scrollToItemBelowFold_checkItsText() { // First scroll to the position that needs to be matched and click on it. onView(ViewMatchers.withId(R.id.recyclerView)) .perform(RecyclerViewActions.actionOnItemAtPosition(ITEM_BELOW_THE_FOLD, click())); // Match the text in an item below the fold and check that it's displayed. String itemElementText = mActivityRule.getActivity().getResources().getString( R.string.item_element_text) + String.valueOf(ITEM_BELOW_THE_FOLD); onView(withText(itemElementText)).check(matches(isDisplayed())); } In which is present
Test class showcasing some {@link RecyclerViewActions} from Espresso I try to cut it in gradle in different ways:
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2' androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2.2' androidTestCompile 'com.android.support:support-annotations:25.0.1' `but alas, it fails, gives errors
androidTestCompile 'com.android.support.test.espresso: espresso-core: 2.2.2' androidTestCompile 'com.android.support.test: runner: 0.5' androidTestCompile 'com.android.support.test.espresso: espresso-contrib: 2.2.2 'androidTestCompile' com.android.support:support-annotations:25.0.1 'androidTestCompile' com.android.support.test.espresso: espresso-core: 2.2.2 'androidTestCompile' com.android.support.test: runner: 0.5 'androidTestCompile' com.android.support.test.espresso: espresso-contrib: 2.2.2 'androidTestCompile' com.android.support:support-annotations:25.0.1 'androidTestCompile' com.android.support.test. espresso: espresso-core: 2.2.2 'androidTestCompile' com.android.support.test: runner: 0.5 'androidTestCompile' com.android.support.test.espresso: espresso-contrib: 2.2.2 'androidTestCompile' com.android. support: support-annotations: 25.0.1 'androidTestCompile' com.android.support.test.espresso: espresso-core: 2.2.2 'androidTestCompile' com.android.support.test: runner: 0.5 'androidTestCompile' com.android. su pport.test.espresso: espresso-contrib: 2.2.2 'androidTestCompile' com.android.support:support-annotations:25.0.1 'androidTestCompile' com.android.support.test.espresso: espresso-core: 2.2.2 ' androidTestCompile 'com.android.support.test: runner: 0.5' androidTestCompile 'com.android.support.test.espresso: espresso-contrib: 2.2.2' androidTestCompile 'com.android.support:support-annotations:25.0.1'
Tell me, how can I fix it? And then similar decisions by.