How to open Navigation Drawer using espresso?
Check if you're missing the espresso-contrib library on your build.gradle file.
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
If in case you are using androidx
,
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.2.0'
Check other useful espresso extension libraries on the following link - https://developer.android.com/training/testing/espresso/#packages