Does anyone have a code example for a Selenium test (or some other browser testing environment) on a Google Maps API V3 map? Specifically, I want to interact with the markers and popup windows.
All Maps Embed API requests are available at no charge with unlimited usage.
Welcome to. Google Maps Platform. See where real-world insights and location solutions can take your business.
Solved. Not 100% elegant but it works. Set optimized : false
on the markers. This makes them all appear on the map (docs). Then set the XPath selector in the Selenium test to '//div[@class="gmnoprint" and @title]
, this will select all the markers. You can then interact with the markers.
See also this Google groups posting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With