cy.contains('type') cy.get('.action-email') cy.get('form').within(() => { cy.get('input').type('Pamela') // Only yield inputs within form cy.get('textarea').type('is a developer') // Only yield textareas within form }) cy.get('nav').children() // Yield children of nav cy.get('td').closest('.filled') // Yield closest el with class '.filled' cy.contains('ul').end() // Yield 'null' instead of 'ul' el