jeprubio

2

votes
0

answer
503

views

Execute a method of a fragment from espresso

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...
jeprubio