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