title: Cypress iterate over the table and click on the matching text passed from gherkin file
body: <p>I am new to cypress and have a scenario where i need to select 'text2' from below table which is under a view, 'text2' is the value from feature file.</p>
  <pre><code>&lt;table&gt;
    &lt;tr .............&gt;
       &lt;td ..........&gt;
          &lt;div  ....&gt;
             &lt;input class= ' ' ..... value='text1'&gt;
           &lt;/div&gt;
       &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr .............&gt;
       &lt;td ..........&gt;
          &lt;div  ....&gt;
             &lt;input class= ' ' ..... value='text2'&gt;
           &lt;/div&gt;
       &lt;/td&gt;
     &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  <p>i tried with
  <code>cy.get('table tr').find('td').contains('text2').click()</code> its not working,
  Any Suggestions would be of great help, Thanks.</p>