I am using espresso to perform several tests. In my latest test I have to test an activity that has a viewPager with fragments.
What I want to do is to call a method of the current visible fragment from the test.
Is it possible to do this with espresso? I know how to create ViewActions and Matchers but what I need to call the method of the fragment itself and not on a view.
Thanks in advance.