lundi 16 septembre 2019

Hide Third-Party Overlay - Android Espresso Testing

I'm trying to create some tests for a login screen, and they're all failing due to an overlay coming from LastPass offering to autofill the password.
I think the overlay has focus and so I can't interact with my elements while it's showing.

I'm receiving a Runtime Exception:
java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds.

How can I fix this - is there a function that would hide it, or a flag that disables overlays?

Image of Lastpass overlay

Aucun commentaire:

Enregistrer un commentaire