title: How to get the text input field value to a const and log that value in Cypress.io
body: <p>How to get the text input field value to a 'const' variable in Cypress, so that I can log that variable using cy.log(). The below code doesn't log anything, can someone familiar with Cypress.io please advise</p>
  
  <pre><code>cy.get('input[name="email"]').then(($text)=&gt;{
          const txt = $text.text()
          cy.log(txt)
  
      })
  </code></pre>