Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to assert element attributes in cypress

cy.get('[data-test="element_data_test"]').invoke('attr', 'type').should('eq', 'text');
Source by www.webtips.dev #
 
PREVIOUS NEXT
Tagged: #assert #element #attributes #cypress
ADD COMMENT
Topic
Name
9+3 =