Has anybody tried to automate google map in android ?
Works like a charm:
set location BEFORE create the map:
driver.setLocation(new Location(50.0566300, 14.4661325, 300));
for some reason, it doesn’t listen to location events after map is displayed.
Then iterate through pins / markers:
driver.context("NATIVE_APP");
for(MobileElement me : driver.findElementsByXPath("//android.view.View[@content-desc='Mapa Google']/android.view.View")) {
...
Enjoy!