Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to inspect element attributes in cypress

cy.get('[data-test="passwordInput"]')
	.invoke('attr', 'type')
    .should('eq', 'password');
Source by filiphric.com #
 
PREVIOUS NEXT
Tagged: #inspect #element #attributes #cypress
ADD COMMENT
Topic
Name
3+4 =