We are trying to create automated tests for Mapbox's Maps SDK for Android based native mobile application. The automated tests need to determine the number of markers present on the screen, the number of marker clusters present on the screen, click on marker or cluster etc.
When looking at the Mapbox maps on Android application through UIAutomatorViewer or through Appium inspector, the markers visible on the map are not shown in the object hierarchy.
What can the Android native mobile application development team do to surface the markers/clusters so that they are visible to Appium?
Alternately, what other options can the automation team explore to develop automated tests? Espresso is not ideal as automation team does not have access to source code for the native mobile application.
Please see Mapbox demo application's -> Annotations -> Draw a marker for an example of a marker that we would like to detect and click on.