Hi, for today I have some tips about swiping ViewActions in Espresso for Android. As you may know the latest Espresso release contains new swipeLeft and swipeRight ViewActions. They both are really useful when you'd like to swipe between activity fragments, tab layouts or any other UI elements. You can use it as any other view action: onView(withId(R.id.viewId)).perform(swipeRight()); But be aware that doing this you will operate on a view, in our case R.id.viewId, but not on the screen size. That means that to swipe right or left, for example between fragments you have to deal with some parent layout or maybe list view. If you take a look inside Espresso's ViewActions.java class you will see below code for swipeRight() method: public static ViewAction swipeRight() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.CENTER_LEFT, GeneralLocation.CENTER_RIGHT, Press.FINGER); } As you may g...