Hi, i need help in understanding why the variable ...
# e2e-testing
s
Hi, i need help in understanding why the variable becomes undefined in this code please. let list_title ="" cy.get('.text).then((title) =>{ cy.log("TITLE: " + title.text().toString()) // it prints the title as expected list_title = title.text() // I assigned the text to the list_title variable }) cy.log(list_title) // now it results to undefined