Espresso for tablayout and view pager inside relative how to perform click and swipe (kotlin)
I am try to testing my apps using espresso
when I try to swipe viewpager using:
onView(withId(view_pager)).perform(swipeRight())
I get error :
Error performing 'fast swipe' on view
cause I use tab layout and view pager I try to click the tab item inside the tabview, using like this :
onView(withId(tabItem)).perform(click())
and I get error :
No views in hierarchy found matching
I also try to use record Espresso test, end when I try to run with that I get error like the first.
my...