Skip to content
masterclass Buddy

Cypress · Matcher

be.visible

Use .should('be.visible') to verify that a queried DOM element is visible. Cypress retries the assertion until it passes or times out.

Last updated

Syntax

cy.get(selector).should('be.visible')

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

Subscribe
  • cy.get()
  • should()
  • Chai-jQuery
  • Visibility

Source: Assertions in Cypress | Cypress Documentation. Checked 2026-11-03.