Cypress · Junior · Frage 21 von 75
Wie prüft man, dass ein Element NICHT auf der Seite ist?
- 1
.should('be.null') - 2
.should('be.missing') - 3
.should('not.exist')
Antwort zeigen
Richtige Antwort: .should('not.exist')
Erklärung
not.exist besteht, wenn die Abfrage nichts findet. not.be.visible ist etwas anderes: Das Element existiert, ist aber versteckt.