This code is working fine.
var txt
cy.visit('https://dev.wholesoftmarket.com/account/signup')
cy.get('label[for="exampleInputEmail1"]').invoke('text').then((text)=>{
txt = text
cy.get('#exampleInputPassword1').type(txt)
})
This is not working, though I am getting an error of "You passed in: undefined". I am not sure how this works!
var txt
cy.visit('https://dev.wholesoftmarket.com/account/signup')
cy.get('label[for="exampleInputEmail1"]').invoke('text').then((text)=>{
txt = text
})
cy.get('#exampleInputPassword1').type(txt)
Can someone explain how this working?