docs(api.md): fix return value of frame.select() (#1251)

This commit is contained in:
Vse Mozhet Byt 2017-11-03 06:46:49 +02:00 committed by Andrey Lushnikov
parent ac55e69676
commit cee3081a41

View File

@ -1510,7 +1510,7 @@ If the name is empty, returns the id attribute instead.
#### frame.select(selector, ...values)
- `selector` <[string]> A [selector] to query frame for
- `...values` <...[string]> Values of options to select. If the `<select>` has the `multiple` attribute, all values are considered, otherwise only the first one is taken into account.
- returns: <[Promise]<[string]>>
- returns: <[Promise]<[Array]<[string]>>> Returns an array of option values that have been successfully selected.
Triggers a `change` and `input` event once all the provided options have been selected.
If there's no `<select>` element matching `selector`, the method throws an error.