Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress check element have attribute

cy.get('input').invoke('attr', 'placeholder').should('contain', 'username')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cypress #check #element #attribute
ADD COMMENT
Topic
Name
5+4 =