title: How do I test a click on SVG objects using Selenium webdriver?
body: <p>I am trying to write a code to check the functionality of a click on an SVG object - for example a US state on this URL</p>
  
  <pre><code>http://www.amcharts.com/svg-maps/?map=usa
  </code></pre>
  
  <p>This works, but is there a better way to do this? Something without physically moving the mouse? </p>
  
  <pre><code>robert = new Robot();
  robert.mouseMove(x, y);
  // full click once to get focus on the window
  robert.mousePress(MouseEvent.BUTTON1_MASK);
  robert.mouseRelease(MouseEvent.BUTTON1_MASK);
  // then set the filter
  robert.mousePress(MouseEvent.BUTTON1_MASK);
  robert.mouseMove(x, y);
  robert.mouseRelease(MouseEvent.BUTTON1_MASK);
  </code></pre>