Cypress Obtenha elemento Val e devolva -o

cy.get('app-screen').find('input[id="studentName"]').invoke('val').as('name')
cy.get('@name').then((name) => {
  cy.log('Student Name: ' + name) //prints name
})
Obnoxious Opossum