# Empty elements

Let's use CSS selector :empty to find empty DIV elements

<div>First</div>
<div>Second</div>
<div></div>
<div>Third</div>
<div>Fourth</div>
<div></div>
First
Second
Third
Fourth
cy.get(':empty').should('have.length', 2)

Let's find non-empty DIV elements

cy.get(':not(:empty)').should('have.length', 4)