title: Selenium click on link
body: <p>I'm using Selenium's IDE in FireFox to do some testing, and I want Selenium to click the second link (Text2). Any idea how I do that? Unfortunately I don't have access to the HTML and can't modify it. The record function doesn't seem to register the click. </p>
  
  <p>The code is attached below. Thanks in advance!</p>
  
  <pre><code>&lt;div class="class1"&gt;
      &lt;div class="class2"&gt;
          &lt;span class="class3"&gt;&lt;a href="#" onclick="fn1();"&gt;Text1&lt;/a&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="class1"&gt;
      &lt;div class="class2"&gt;
          &lt;span class="class3"&gt;&lt;a href="#" onclick="fn2();"&gt;Text2&lt;/a&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>