title: Cypress - doesn't find table elements
body: <p>Dear stackoverflow members,
  i have an issue testing our webpage in cypress.io
  I am iterating with $().each() function in jquery, and trying to find an specific element in a table row and also trying to make it " highlighted or ' selected' " .
  The crazy thing is when i try in the conditional part like : </p>
  
  <pre><code>let number = $("#idOfSomething").text(); // Here i store the text from a dynamic label
                                           // which get its value from db  
  
  if( Cypress.$(this).find('td:eq(1):contains("' + number+ '")').length &gt; 0 ){
    // nothing found 
  }
  </code></pre>
  
  <p>--------------or------------------</p>
  
  <pre><code>else if (Cypress.$(this).find('td:eq(1)').text() == number ){
  // nothing found
  }
  </code></pre>
  
  <hr>
  
  <p>But if i try to put the value in the conditional part HARD CODED then it finds it</p>
  
  <pre><code> if (Cypress.$(this).find('td:eq(1)').text() == "xy123" ){
      cy.log(number)  // prints "xy123"
      }
  </code></pre>
  
  <hr>
  
  <p>Why is that ???</p>
  
  <hr>
  
  <p>Another thing is when i try to loop over the same table with the same function like above
  and the table is longer than a page, then i scroll down to the bottom of the table with this function :</p>
  
  <pre><code>cy.get("#myTable").scrollTo("bottomLeft");
  </code></pre>
  
  <p>while it loops over every element,
  it doesnt find that element if it is not on the screen at first before the function scrolls down.
  I mean, if i type a number like "1" in the condition part :</p>
  
  <pre><code>if(Cypress.$(this).find('td:eq(1)').text() == 1 ){
  // here it finds the entry 1 in the table, because it is at the first page directly,
  </code></pre>
  
  <p>// but lets say a type 50 instead of 1  --> now the 50 isnt at the screen.
     // cypress scrolls down ... I SEE THE NUMBER 50 ON THE SCREEN , BUT CYPRESS WONT see it.
  }</p>
  
  <p>i tried also to click on the table header so the numbers gets DESC ...so 50 is at first ...wont work either .
  I tried also to scroll down to the bottom via an offset xy..wont work either. </p>