mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api.md): fix return value of frame.select() (#1251)
This commit is contained in:
parent
ac55e69676
commit
cee3081a41
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user