title: How to click one button that exists two times with same name?
body: <p>I try to click a button named .red and the problem is that there are two buttons with same name so Cypress does not know which of them to click with command cy.get('.red').click()</p>
  <p>Originally I thought I have to access my class before trying to click the button.</p>
  <p>How can I use below code to click &quot;red trash icon&quot;?</p>
  <pre><code>&lt;div class=&quot;one wide column&quot;&gt;
      &lt;div class=&quot;ui vertical right floated buttons&quot;&gt;
          &lt;a class=&quot;ui basic button&quot; role=&quot;button&quot; href=&quot;/admin/assignments/edit/37&quot;&gt;
              &lt;i aria-hidden=&quot;true&quot; class=&quot;cog icon&quot;&gt;&lt;/i&gt;
          &lt;/a&gt;
          &lt;button class=&quot;ui basic button&quot;&gt;
              &lt;i aria-hidden=&quot;true&quot; class=&quot;red trash icon&quot;&gt;&lt;/i&gt;
          &lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>