Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Jan 16, 2021
1 parent f3664dd commit ea1cf5f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/api/class-elementhandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ Returns the array of option values that have been successfully selected.
Triggers a `change` and `input` event once all the provided options have been selected. If element is not a `<select>`
element, the method throws an error.

Will wait until all specified options are present in the `<select>` element.

```js
// single selection matching the value
handle.selectOption('blue');
Expand Down
2 changes: 2 additions & 0 deletions docs/src/api/class-frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ Returns the 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 [`param: selector`], the method throws an error.

Will wait until all specified options are present in the `<select>` element.

```js
// single selection matching the value
frame.selectOption('select#colors', 'blue');
Expand Down
2 changes: 2 additions & 0 deletions docs/src/api/class-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,8 @@ Returns the 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 [`param: selector`], the method throws an error.

Will wait until all specified options are present in the `<select>` element.

```js
// single selection matching the value
page.selectOption('select#colors', 'blue');
Expand Down
6 changes: 6 additions & 0 deletions types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2417,6 +2417,8 @@ export interface Page {
* 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.
*
* Will wait until all specified options are present in the `<select>` element.
*
* ```js
* // single selection matching the value
* page.selectOption('select#colors', 'blue');
Expand Down Expand Up @@ -4090,6 +4092,8 @@ export interface Frame {
* 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.
*
* Will wait until all specified options are present in the `<select>` element.
*
* ```js
* // single selection matching the value
* frame.selectOption('select#colors', 'blue');
Expand Down Expand Up @@ -5940,6 +5944,8 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
* Triggers a `change` and `input` event once all the provided options have been selected. If element is not a `<select>`
* element, the method throws an error.
*
* Will wait until all specified options are present in the `<select>` element.
*
* ```js
* // single selection matching the value
* handle.selectOption('blue');
Expand Down

0 comments on commit ea1cf5f

Please sign in to comment.