cy.get('#name').type('Mani')
var Name =cy.get('#name').text
cy.log(Name)
cy.log(Name+ 'Hello, this practice page and share your knowledge')
I stored the name in the ‘Name’ variable and display it properly in cy.log(Name). But when I am trying to concatenate with variable(Name) it’s getting unefined.
I want to be display like “John Hello….”
New contributor
Ish is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.