title: How to get the last element in Selenium IDE thats always changing
body: <p>In the code:</p>
  
  <pre><code>&lt;img style="cursor: pointer; background-color: transparent;" onclick="changeTeamHint(2155);" src="/images/icon_edit_inactive.png"&gt;
  </code></pre>
  
  <p><code>onclick="changeTeamHint(2155);"</code> is always changing. The number increases as I add more fields to my form. </p>
  
  <p>How do I get the last element in Selenium IDE? For example, if I add a text field with <code>"changeTeamHint(2156)"</code>, how do I use Selenium IDE to select the latest one? If its 2157, it selects 2157. Etc.</p>
  
  <p>Here's what I got so far: <code>xpath=(//img[@style='cursor:pointer;'])[last()]</code></p>
  
  <p>But my coworker told me to try to find it by onclick, and here's what I got that works: <code>xpath=(//img[@onclick='changeTeamHint(2155);'])[last()]</code></p>
  
  <p>I tried: <code>xpath=(//img[@onclick='changeTeamHint();'])[last()]</code>, but it gives me an error</p>