Skip to content
RED SAGSkills
medium10 pts · first answer countscypressasync-javascript

Cypress values are not returned

Why does this Cypress code not work as the author expects?

const name = cy.get('[data-testid=username]').invoke('text')
expect(name).to.equal('Asha')
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions