Cypress · Method
cy.select
cy.select() chooses one or more options in a <select> element by value, index, or text. It supports action options such as force, log, and timeout.
Last updated
Syntax
cy.get('select').select(value)
cy.get('select').select(values)
cy.get('select').select(value, options)
cy.get('select').select(values, options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
.click()Working with Select elementsSelect2 widgets