Files
cypress/docs/source/api/cypress-api/dom.md
T

716 B

title, comments
title comments
Cypress.Dom false

Cypress.Dom.isHidden() allows you to work with logic that determines whether an element is hidden.

Syntax

Cypress.Dom.isHidden(element)

Usage

{% fa fa-check-circle green %} Correct Usage

Cypress.Dom.isHidden('form')

{% fa fa-exclamation-triangle red %} Incorrect Usage

cy.Dom.isHidden('form')  // Errors, cannot be chained off 'cy'

Examples

Is Hidden

Returns a boolean indicating whether an element is hidden.

Cypress internally uses this method everywhere to figure out whether an element is hidden.

var $el = $("#modal")

Cypress.Dom.isHidden($el) // => false