DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+3 =
Submit