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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Solved. Not 100% elegant but it works. Set
optimized : falseon 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.