I am trying to verify color of text view in android app.
healthHistoryPage.allergies.check(matches(hasTextColor(android.R.color.black))))
I am getting an error saying:
android.support.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: 'has color with ID 17170444' doesn't match the selected view.
Expected: has color with ID android:color/black
But I dont see the whats the actual color value anywhere in error message. Is there a way I can fetch the actual color value if I dont have access to source code.
Aucun commentaire:
Enregistrer un commentaire