How to interact with embedded Google map view in Android apps

643 views
Skip to first unread message

Xiaoxing Hu

unread,
Jul 13, 2014, 10:48:27 PM7/13/14
to appium-...@googlegroups.com
Hi there,

I have an Android app which has a Google map view embedded in it. In the app I can manually interact with the map (zoom in, out, tap on the pins and there will be a popup, tap on the popup menu, it will disappear).

How can I do following things in my automation script:
1. Make the map view to move around and zoom in and zoom out.
2. Interact with the popup menu. I extracted the UI source with "uiautomatorviewer", and in the xml structure, I can see the pins and "My Location" button on the right top corner. But I cannot see the popup menu, even it is right there in the map view in the screenshot.

Isaac Murchie

unread,
Jul 15, 2014, 3:11:38 PM7/15/14
to Xiaoxing Hu, appium-...@googlegroups.com
1) You ought to be able to use the touch action API to interact with the map. The overview is here (https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/touch-actions.md) and specifics ought to be found in the specific client implementations.

2) Not sure about this.


--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages