mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-13 02:40:22 -05:00
716 B
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