2020-06-04 14:56:45 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [puppeteer ](./puppeteer.md ) > [Frame ](./puppeteer.frame.md ) > [select ](./puppeteer.frame.select.md )
## Frame.select() method
2020-07-09 13:22:58 +00:00
Triggers a `change` and `input` event once all the provided options have been selected.
2020-06-04 14:56:45 +00:00
< b > Signature:< / b >
```typescript
select(selector: string, ...values: string[]): Promise< string [ ] > ;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2020-07-09 13:22:58 +00:00
| selector | string | a selector to query the frame for |
| values | string\[\] | an array of values to select. If the < code > < select> </ code > has the < code > multiple</ code > attribute, all values are considered, otherwise only the first one is taken into account. |
2020-06-04 14:56:45 +00:00
< b > Returns:< / b >
Promise< string\[\]>
2020-07-09 13:22:58 +00:00
the list of values that were successfully selected.
## Remarks
If there's no `<select>` element matching `selector` <!-- --> , the method throws an error.
## Example
```js
frame.select('select#colors', 'blue'); // single selection
frame.select('select#colors', 'red', 'green', 'blue'); // multiple selections
```