@@ -1669,12 +1669,16 @@ async def select_option(
1669
1669
) -> typing .List [str ]:
1670
1670
"""ElementHandle.select_option
1671
1671
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.
1673
1678
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.
1676
1680
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 .
1678
1682
1679
1683
```py
1680
1684
# single selection matching the value
@@ -1793,10 +1797,14 @@ async def fill(
1793
1797
"""ElementHandle.fill
1794
1798
1795
1799
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()`.
1800
1808
1801
1809
Parameters
1802
1810
----------
@@ -3777,10 +3785,13 @@ async def fill(
3777
3785
"""Frame.fill
3778
3786
3779
3787
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.
3784
3795
3785
3796
To send fine-grained keyboard events, use `frame.type()`.
3786
3797
@@ -4019,12 +4030,16 @@ async def select_option(
4019
4030
) -> typing .List [str ]:
4020
4031
"""Frame.select_option
4021
4032
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.
4023
4035
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.
4026
4039
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.
4028
4043
4029
4044
```py
4030
4045
# single selection matching the value
@@ -4628,6 +4643,8 @@ def type(self) -> str:
4628
4643
def text (self ) -> str :
4629
4644
"""ConsoleMessage.text
4630
4645
4646
+ The text of the console message.
4647
+
4631
4648
Returns
4632
4649
-------
4633
4650
str
@@ -4638,6 +4655,8 @@ def text(self) -> str:
4638
4655
def args (self ) -> typing .List ["JSHandle" ]:
4639
4656
"""ConsoleMessage.args
4640
4657
4658
+ List of arguments passed to a `console` function call. See also `page.on('console')`.
4659
+
4641
4660
Returns
4642
4661
-------
4643
4662
List[JSHandle]
@@ -6800,14 +6819,17 @@ async def fill(
6800
6819
"""Page.fill
6801
6820
6802
6821
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.
6807
6829
6808
6830
To send fine-grained keyboard events, use `page.type()`.
6809
6831
6810
- Shortcut for main frame's `frame.fill()`
6832
+ Shortcut for main frame's `frame.fill()`.
6811
6833
6812
6834
Parameters
6813
6835
----------
@@ -7048,12 +7070,16 @@ async def select_option(
7048
7070
) -> typing .List [str ]:
7049
7071
"""Page.select_option
7050
7072
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.
7052
7079
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.
7055
7081
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 .
7057
7083
7058
7084
```py
7059
7085
# single selection matching the value
@@ -7064,7 +7090,7 @@ async def select_option(
7064
7090
await page.select_option(\" select#colors\" , value=[\" red\" , \" green\" , \" blue\" ])
7065
7091
```
7066
7092
7067
- Shortcut for main frame's `frame.select_option()`
7093
+ Shortcut for main frame's `frame.select_option()`.
7068
7094
7069
7095
Parameters
7070
7096
----------
0 commit comments