jeudi 21 mars 2019

Problems running UiAutomator2 on Android 7.0

I'm developing my UITests in Espresso but in order to be able to click in the Google Auth dialog, I'm using UIAutomator.

I'm running the tests on an Android 8.0 and all works fine, but when I ran it on an Android 7.0 the test don't work properly.

This is the line where the test gets freezed:

UiObject mText = mUiDevice.findObject(new UiSelector().textContains(BuildConfig.BASE_EMAIL));

I tried it with another 8.0 Android device and a 9.0, and all works well.

Aucun commentaire:

Enregistrer un commentaire