mardi 11 avril 2017

Android Studio Instrumented Tests - how to handle permission dialogs

I am writing instrumented test automation for an Android app. The app pops up several native permission dialogs during start-up (like, allow access to Camera) which do not register in the Espresso Test Recorder. How do I handle these dialogs (click Allow) so I can get the app to launch? Or is there a way to grant the app permissions when installing, so the dialogs won't show up?

Aucun commentaire:

Enregistrer un commentaire