Cypress · Junior · Pytanie 21 z 75
Jak sprawdzić, że elementu NIE ma na stronie?
- 1
.should('be.null') - 2
.should('be.missing') - 3
.should('not.exist')
Pokaż odpowiedź
Poprawna odpowiedź: .should('not.exist')
Wyjaśnienie
not.exist przechodzi, gdy zapytanie nic nie znajduje. not.be.visible to co innego: element jest, ale ukryty.