title: Why is Cypress saying my element is detached after just running a get command?
body: <p><strong>Objective:</strong>
  I want to click on a particular element on the page using an accessibility selector with cypress</p>
  <p><strong>Code</strong></p>
  <pre><code>cy.findAllByRole('rowheader').eq(2).click();
  </code></pre>
  <p><strong>Error</strong></p>
  <pre><code>Timed out retrying: cy.click() failed because this element is detached from the DOM.
  
  &lt;th scope=&quot;row&quot; data-automation-id=&quot;taskItem&quot; aria-invalid=&quot;false&quot; tabindex=&quot;-1&quot; class=&quot;css-5xw9jq&quot;&gt;...&lt;/th&gt;
  
  Cypress requires elements be attached in the DOM to interact with them.
  
  The previous command that ran was:
  
    &gt; cy.eq()
  
  This DOM element likely became detached somewhere between the previous and current command.
  </code></pre>
  <p><strong>Question:</strong>
  I can see in the DOM that this element is still present - there is no logic that will detach this element from the DOM, and the eq method certainly wouldn't do that. Additionally, the findAllByRow method is clearly working as it has found the correct th element I want to click on. How come its saying the element is detached? Is there a workaround for this situation?</p>