title: Is there a way to click an area in an image map using Selenium's webdriver?
body: <p>I'm new to Selenium and I'm trying to click areas of an image map.</p>
  
  <p>My image map has two areas. The first area triggers JS; the second area acts as a regular link.</p>
  
  <p>I've tried the following:</p>
  
  <ul>
  <li><p>Clicking on the image which fails because it's blocked by the area (i.e. 'area element would receive the click')</p>
  
  <pre><code>driver.find_element(:css, '.foo img').click
  </code></pre></li>
  <li><p>Clicking on the area which fails for the same reason (i.e. 'html element would receive the click')</p>
  
  <pre><code>driver.find_element(:css, '.foo area').click
  </code></pre></li>
  <li><p>Moving the mouse (to both areas) and performing a click, which executes a click, but doesn't appear to trigger the image map. It fails on any line after the click.</p>
  
  <pre><code>driver.action.move_to(driver.find_element(:css, '.foo img'), 10, 10).click
  </code></pre></li>
  </ul>
  
  <p>Please let me know if I need to provide more information. Any ideas would be appreciated.</p>
  
  <p>Sidenote... I haven't tried using jQuery to trigger the clicks yet. I was hoping to find a pure Selenium solution. </p>