mercredi 29 novembre 2017

How to close any system dialog during execution instrumentation tests

I have a farm of about 20 android devices to run instrumentation UI tests. I use Espresso. Sometimes different system dialogs appear and lead tests to fail. E.g. USSD result dialog, dialog of lost internet connection, dialog of request to update OS and etc.

Is there a way to catch any dialog and close the one? This intent doesn't help.

Intent.ACTION_CLOSE_SYSTEM_DIALOGS

Aucun commentaire:

Enregistrer un commentaire