title: Clicking on Google Maps with Selenium IDE
body: <p>I am not able to create a Selenium test case to automate clicking on Google Maps (specifically, creating markers by single-clicking on the map).</p>
  
  <ol>
  <li><p>Record function in IDE</p>
  
  <p>The "Record" function records my mouse click as</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;click&lt;/td&gt;
      &lt;td&gt;//div[@id='map_canvas']/div[3]/div/div/div[4]/div/div/div[5]&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>When executing the command, this not only places the marker way outside the visible map view, but it is also not reliable on page refresh because the GMap nested div structure changes every time.</p></li>
  <li><p>clickAt</p>
  
  <p><a href="https://stackoverflow.com/questions/2589039/placing-an-embedded-google-map-marker-with-selenium">Here</a> it was suggested to use clickAt with the outside div's div, like so:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;clickAt&lt;/td&gt;
      &lt;td&gt;//div[@id='map_canvas']/div/div[1]&lt;/td&gt;
      &lt;td&gt;(400,300)&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>This does not work at all. I have tried every variation of click, clickAt, and mouseDown/mouseUp that I can think of, but nothing seems to register.</p></li>
  </ol>
  
  <p>I do know that Google has released their <a href="http://code.google.com/p/gmaps-api-issues/wiki/SeleniumTests" rel="nofollow noreferrer">Selenium test suites</a>, but I cannot figure out how to use it to my advantage. Any help would be appreciated!</p>
  
  <p>Edit: It seems to be that the reason Google's approach (and all the other approaches that I've found) don't work is because I am using v3 of Google's Maps API. Google's own Selenium tests seem to be using v2.</p>