Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress check element have attribute

// have.attr comes from chai-jquery
cy.get('#header a').should('have.attr', 'href', '/users')
Source by docs.cypress.io #
 
PREVIOUS NEXT
Tagged: #cypress #check #element #attribute
ADD COMMENT
Topic
Name
4+8 =