title: Clicking on image using Capybara in cucumber
body: <p>I am attempting to click an image with Capybara for a Cucumber test, but cannot find a way to get Capybara to see the image as a link.</p>
  
  <p>My code for the image is:</p>
  
  <pre><code>link_to(image_tag('ico_edit_16.png', alt: 'Edit', class: 'icon16', title: "Edit #{qualification.title}"), edit_qualification_path(qualification))
  </code></pre>
  
  <p>Which shows up as</p>
  
  <pre><code>&lt;a href="/qualifications/1/edit"&gt;
      &lt;img class="icon16" title="Title" src="/images/ico_edit_16.png?1279303992" alt="Edit"&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>in the html, and I have been unable to find a good way to use capybara to click the image.</p>
  
  <p>Any suggestions?</p>