title: how to click on an image using selenium web driver and python as scripting language
body: <p>I am writing a selenium webdriver program using python.<br>
  My problem is that I am not able to click on the image by using x path or css path or id.</p>
  
  <pre><code>    driver.find_element_by_xpath("/div/svg/g/g[3]/g/rect").click()
      driver.find_element_by_css_selector(""div#servicecatalogdisplaygraph.x-component svg g g g rect")
  </code></pre>
  
  <p>My html page info is:</p>
  
  <pre><code>    &lt;div id="servicecatalogdisplaygraph" class="x-component graph x-border-item x-box-item x-        component-default" style="background: none repeat scroll 0% 0% white; padding: 10px; overflow: auto; margin: 0px; width: 484px; left: 0px; top: 0px; height: 491px;"&gt;
      &lt;svg style="width: 100%; height: 100%; min-width: 89px; min-height: 422px;"&gt;
      &lt;g&gt;
      &lt;g&gt;
      &lt;g&gt;
      &lt;g&gt;
      &lt;g style="cursor: pointer;"&gt;
      &lt;image xlink:href="/images/mxgraph/link.png" style="pointer-events:none" x="42" y="202" width="16" height="16" stroke-width="1" transform=" scale(1 1) translate(0 0)"&gt;
      &lt;rect stroke="none" fill="none" visibility="hidden" pointer-events="fill" x="42" y="202" width="16" height="16" stroke-width="1"&gt;
      &lt;/g&gt;
      &lt;/g&gt;
  </code></pre>