@@ -1669,12 +1669,16 @@ async def select_option(
16691669 ) -> typing .List [str ]:
16701670 """ElementHandle.select_option
16711671
1672- Returns the array of option values that have been successfully selected.
1672+ This method waits for [actionability](./actionability.md) checks, waits until all specified options are present in the
1673+ `<select>` element and selects these options.
1674+
1675+ If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
1676+ `<label>` element that has an associated
1677+ [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
16731678
1674- Triggers a `change` and `input` event once all the provided options have been selected. If element is not a `<select>`
1675- element, the method throws an error.
1679+ Returns the array of option values that have been successfully selected.
16761680
1677- Will wait until all specified options are present in the `<select>` element .
1681+ Triggers a `change` and `input` event once all the provided options have been selected .
16781682
16791683 ```py
16801684 # single selection matching the value
@@ -1793,10 +1797,14 @@ async def fill(
17931797 """ElementHandle.fill
17941798
17951799 This method waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input`
1796- event after filling. If the element is inside the `<label>` element that has associated
1797- [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be filled
1798- instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method
1799- throws an error. Note that you can pass an empty string to clear the input field.
1800+ event after filling. Note that you can pass an empty string to clear the input field.
1801+
1802+ If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
1803+ However, if the element is inside the `<label>` element that has an associated
1804+ [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
1805+ instead.
1806+
1807+ To send fine-grained keyboard events, use `element_handle.type()`.
18001808
18011809 Parameters
18021810 ----------
@@ -3777,10 +3785,13 @@ async def fill(
37773785 """Frame.fill
37783786
37793787 This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, focuses the
3780- element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
3781- associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
3782- filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
3783- method throws an error. Note that you can pass an empty string to clear the input field.
3788+ element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
3789+ field.
3790+
3791+ If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
3792+ However, if the element is inside the `<label>` element that has an associated
3793+ [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
3794+ instead.
37843795
37853796 To send fine-grained keyboard events, use `frame.type()`.
37863797
@@ -4019,12 +4030,16 @@ async def select_option(
40194030 ) -> typing .List [str ]:
40204031 """Frame.select_option
40214032
4022- Returns the array of option values that have been successfully selected.
4033+ This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, waits until
4034+ all specified options are present in the `<select>` element and selects these options.
40234035
4024- Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
4025- matching `selector`, the method throws an error.
4036+ If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
4037+ `<label>` element that has an associated
4038+ [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
40264039
4027- Will wait until all specified options are present in the `<select>` element.
4040+ Returns the array of option values that have been successfully selected.
4041+
4042+ Triggers a `change` and `input` event once all the provided options have been selected.
40284043
40294044 ```py
40304045 # single selection matching the value
@@ -4628,6 +4643,8 @@ def type(self) -> str:
46284643 def text (self ) -> str :
46294644 """ConsoleMessage.text
46304645
4646+ The text of the console message.
4647+
46314648 Returns
46324649 -------
46334650 str
@@ -4638,6 +4655,8 @@ def text(self) -> str:
46384655 def args (self ) -> typing .List ["JSHandle" ]:
46394656 """ConsoleMessage.args
46404657
4658+ List of arguments passed to a `console` function call. See also `page.on('console')`.
4659+
46414660 Returns
46424661 -------
46434662 List[JSHandle]
@@ -6800,14 +6819,17 @@ async def fill(
68006819 """Page.fill
68016820
68026821 This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, focuses the
6803- element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
6804- associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
6805- filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
6806- method throws an error. Note that you can pass an empty string to clear the input field.
6822+ element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
6823+ field.
6824+
6825+ If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
6826+ However, if the element is inside the `<label>` element that has an associated
6827+ [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
6828+ instead.
68076829
68086830 To send fine-grained keyboard events, use `page.type()`.
68096831
6810- Shortcut for main frame's `frame.fill()`
6832+ Shortcut for main frame's `frame.fill()`.
68116833
68126834 Parameters
68136835 ----------
@@ -7048,12 +7070,16 @@ async def select_option(
70487070 ) -> typing .List [str ]:
70497071 """Page.select_option
70507072
7051- Returns the array of option values that have been successfully selected.
7073+ This method waits for an element matching `selector`, waits for [actionability](./actionability.md) checks, waits until
7074+ all specified options are present in the `<select>` element and selects these options.
7075+
7076+ If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
7077+ `<label>` element that has an associated
7078+ [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
70527079
7053- Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
7054- matching `selector`, the method throws an error.
7080+ Returns the array of option values that have been successfully selected.
70557081
7056- Will wait until all specified options are present in the `<select>` element .
7082+ Triggers a `change` and `input` event once all the provided options have been selected .
70577083
70587084 ```py
70597085 # single selection matching the value
@@ -7064,7 +7090,7 @@ async def select_option(
70647090 await page.select_option(\" select#colors\" , value=[\" red\" , \" green\" , \" blue\" ])
70657091 ```
70667092
7067- Shortcut for main frame's `frame.select_option()`
7093+ Shortcut for main frame's `frame.select_option()`.
70687094
70697095 Parameters
70707096 ----------
0 commit comments