--- title: select comments: true description: '' --- Select an option within a `` DOM element. **{% fa fa-check-circle green %} Valid Usage** ```javascript cy.get('select').select('user-1') // Select the 'user-1' option ``` **{% fa fa-exclamation-triangle red %} Invalid Usage** ```javascript cy.select('John Adams') // Errors, cannot be chained off 'cy' cy.location().select() // Errors, 'location' does not yield ``` ```javascript // yields cy.get('select').select('apples') ``` ## Value **Select the option with the value "456"** ```html ``` ```javascript // yields cy.get('select').select('456') ``` ## Select multiple options **Select the options with the texts "apples" and "bananas"** ```html ``` ```javascript cy.get('select').select(['apples', 'bananas']) ``` **Select the options with the values "456" and "457"** ```html ``` ```javascript cy.get('select').select(['456', '457']) ``` # Command Log **Select the option with the text "Homer Simpson"** ```javascript cy.get('select').select('Homer Simpson') ``` The commands above will display in the command log as: screen shot 2015-11-29 at 1 17 27 pm When clicking on `select` within the command log, the console outputs the following: screen shot 2015-11-29 at 1 17 45 pm # See also - [click](https://on.cypress.io/api/click)