hi I am stuck with something little I am trying to...
# help
a
hi I am stuck with something little I am trying to do but just can't figure it out! I found my element and I want to get the text inside and store as a variable. I tried: cy.get('h1') .contains(EXPECTED_HEADING) .should('be.visible') .invoke('val').as('headingtext'); cy.log('@headingtext');