Skip to content
masterclass Buddy

Cypress · Method

cy.not

Cypress .not() removes matching elements from a DOM collection. Chain it from a command that yields DOM elements, then continue with commands or assertions.

Last updated

Syntax

.not(selector)
.not(selector, options)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • cy.contains()
  • filter()

Source: not | Cypress API Documentation. Checked 2026-11-03.