get length of array of cypress elements code example Example: cypress number of elements cy.get('.datatable').find('tr').should('have.length', 4)