--- title: select comments: true description: '' --- Select an option within a `` element based on the text content of the option. # [cy.select( *value* )](#value-usage) Select an option within a `` element based on the text of the option. # [cy.select( *values* )](#values-usage) Select multiple options within a ` ``` ```javascript // returns cy.get('select').select('apples') ``` # Value Usage ## Select the option with the value "456" ```html ``` ```javascript // returns cy.get('select').select('456') ``` # Texts Usage ## Select the options with the texts "apples" and "bananas" ```html ``` ```javascript cy.get('select').select(['apples', 'bananas']) ``` # Values Usage ## 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)