//ImageView[@id="someId"][1] and by //GridView[@id="someId"]//ImageView[@id="someId"][1]. But unable to get image from gallery. Is there another way to select image from android gallery?
Uiautomator cannot select the thumbnails in Gallery. So you have to do some clever indirect calculation to figure out the coordinates of the center of the thumbnail to be selected. Then you long-tap on that coordinates. :)
--
http://appium.io
---
You received this message because you are subscribed to a topic in the Google Groups "Appium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-discuss/TTitzYcID1U/unsubscribe.
To unsubscribe from this group and all its topics, 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.