i have this code
cy.get('body').then(($body) => {
if ($body.find('.asis-mailto-obfuscated-email').length > 0){
cy.get('.asis-mailto-obfuscated-email').invoke('text').should('eq',$email)
}else if ($body.find(':nth-child(1) > .panel-body').length > 0){
cy.log('It goes here')
}
})
})
But '.asis-mailto-obfuscated-email' returning me this
and i want all this 6 element can assert equal to $email. How can i achieved that?