It is stated in documentation that
Android test case classes for activities extend JUnit and also connect
you to the application under test with instrumentation. You can send
keystroke or touch events directly to the UI.
I didn’t find the description how to send touch events, please advice.
Use the various methods on the
TouchUtilsclass. Quoting the JavaDocs: