Search code examples
androidandroid-espressoandroid-espresso-recorder

Scroll down in navigation menu using espresso


I've a navigation menu in my application, I wanna to click on an item inside but I should scroll down in navigation menu to reach the item. Espresso recorder didn't detect the scroll/swipe action I made on the screen, it just detected the click action on the item.

ViewInteraction appCompatCheckedTextView = onView(
                allOf(withId(R.id.resourceid), withText("Settings"), isDisplayed()));
        appCompatCheckedTextView.perform(click());

How can I implement the swipe / scroll action in navigation menu?


Solution

  • If you are using Recorder to Swipe/Scroll. It is not supported on Android Studio recorder as yet. Please follow this link for future updates:

    Weblink: Issue 235615 in android Studio