Log in or register to post comments In Cypress we have first() and last() functions for this. Example: cy.get('#nb-element').first() cy.get('#nb-element').last() Related Content Cypress Select from Dynamic Drop Down Cypress Configuration Cypress Tutorial Tags Cypress Interview Questions