title: Image Map Clicking in Selenium
body: <p>I have to test an application that has a huge image, but just a small portion of it is clickable through image maps.</p>
  
  <p>I have tried everything to calculate the right position and click, but the click is outside the position and the test fails.</p>
  
  <p>Could someone point me on how to log current mouse position or how to show the mouse during the test?</p>
  
  <p>I am using action chains to move the mouse cursor to the center of the image, but from there all my calculations made the click outside the image map rectangle.</p>
  
  <p>See below my code snippet:</p>
  
  <pre><code>        el=driver.find_elements_by_xpath("/html/body/form/table/tbody/tr/td/img")[0]
          #el=driver.find_elements_by_xpath("//html/body/map/area[2]")[0]
          width=el.size["width"]
          height=el.size["height"]        
  
          action = webdriver.common.action_chains.ActionChains(driver)
          action.move_to_element(el)
          print driver.get_window_position()
          action.move_by_offset(193, 310)
          print driver.get_window_position()
          action.click()
          action.perform()
  </code></pre>
  
  <p>Thanks,</p>