f you experience issues finding UI elements for an Android app, it might be that the developer has used an Android security feature in their app to block taking screenshots, so the UI elements are protected and not accessible.
If this is the case, you'll see this in the device log when trying to take a screenshot during a test:
W SurfaceFlinger : FB is protected: PERMISSION_DENIED
Prior to Android 9, apps using this security feature did not stop the app from being displayed in the video of live tests, or the video recording of automated tests. In Android 9 however, protected views in an app will display as a blank, black screen in video of live tests, or the video recording of automated tests. This is not a bug - this is the Android security feature working as designed.