You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-elementhandle.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -391,10 +391,11 @@ Optional argument to pass to [`param: expression`].
391
391
392
392
## async method: ElementHandle.fill
393
393
394
-
This method waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling.
395
-
If the element is inside the `<label>` element that has associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be filled instead.
396
-
If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
397
-
Note that you can pass an empty string to clear the input field.
394
+
This method waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input field.
395
+
396
+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled instead.
397
+
398
+
To send fine-grained keyboard events, use [`method: ElementHandle.type`].
398
399
399
400
### param: ElementHandle.fill.value
400
401
-`value` <[string]>
@@ -591,12 +592,13 @@ Throws when `elementHandle` does not point to an element
591
592
## async method: ElementHandle.selectOption
592
593
- returns: <[Array]<[string]>>
593
594
594
-
Returns the array of option values that have been successfully selected.
595
+
This method waits for [actionability](./actionability.md) checks, waits until all specified options are present in the `<select>` element and selects these options.
595
596
596
-
Triggers a `change` and `input` event once all the provided options have been selected. If element is not a `<select>`
597
-
element, the method throws an error.
597
+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
598
+
599
+
Returns the array of option values that have been successfully selected.
598
600
599
-
Will wait until all specified options are present in the `<select>` element.
601
+
Triggers a `change` and `input` event once all the provided options have been selected.
Copy file name to clipboardExpand all lines: docs/src/api/class-frame.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -609,10 +609,9 @@ Optional argument to pass to [`param: expression`].
609
609
610
610
## async method: Frame.fill
611
611
612
-
This method waits for an element matching [`param: selector`], waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling.
613
-
If the element is inside the `<label>` element that has associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be filled instead.
614
-
If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
615
-
Note that you can pass an empty string to clear the input field.
612
+
This method waits for an element matching [`param: selector`], waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input field.
613
+
614
+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled instead.
616
615
617
616
To send fine-grained keyboard events, use [`method: Frame.type`].
618
617
@@ -920,12 +919,13 @@ returns empty array.
920
919
## async method: Frame.selectOption
921
920
- returns: <[Array]<[string]>>
922
921
923
-
Returns the array of option values that have been successfully selected.
922
+
This method waits for an element matching [`param: selector`], waits for [actionability](./actionability.md) checks, waits until all specified options are present in the `<select>` element and selects these options.
924
923
925
-
Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
926
-
matching [`param: selector`], the method throws an error.
924
+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
925
+
926
+
Returns the array of option values that have been successfully selected.
927
927
928
-
Will wait until all specified options are present in the `<select>` element.
928
+
Triggers a `change` and `input` event once all the provided options have been selected.
Copy file name to clipboardExpand all lines: docs/src/api/class-page.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1467,14 +1467,13 @@ Callback function which will be called in Playwright's context.
1467
1467
1468
1468
## async method: Page.fill
1469
1469
1470
-
This method waits for an element matching [`param: selector`], waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling.
1471
-
If the element is inside the `<label>` element that has associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be filled instead.
1472
-
If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
1473
-
Note that you can pass an empty string to clear the input field.
1470
+
This method waits for an element matching [`param: selector`], waits for [actionability](./actionability.md) checks, focuses the element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input field.
1471
+
1472
+
If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled instead.
1474
1473
1475
1474
To send fine-grained keyboard events, use [`method: Page.type`].
Returns the array of option values that have been successfully selected.
2257
+
This method waits for an element matching [`param: selector`], waits for [actionability](./actionability.md) checks, waits until all specified options are present in the `<select>` element and selects these options.
2259
2258
2260
-
Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
2261
-
matching [`param: selector`], the method throws an error.
2259
+
If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the `<label>` element that has an associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
2260
+
2261
+
Returns the array of option values that have been successfully selected.
2262
2262
2263
-
Will wait until all specified options are present in the `<select>` element.
2263
+
Triggers a `change` and `input` event once all the provided options have been selected.
* @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.
1738
1741
* @param value Value to fill for the `<input>`, `<textarea>` or `[contenteditable]` element.
1739
1742
* @param options
@@ -2479,12 +2482,16 @@ export interface Page {
2479
2482
}): Promise<Buffer>;
2480
2483
2481
2484
/**
2482
-
* Returns the array of option values that have been successfully selected.
2485
+
* This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/docs/actionability) checks, waits until
2486
+
* all specified options are present in the `<select>` element and selects these options.
2483
2487
*
2484
-
* Triggers a `change` and `input` event once all the provided options have been selected. If there's no `<select>` element
2485
-
* matching `selector`, the method throws an error.
2488
+
* If the target element is not a `<select>` element, this method throws an error. However, if the element is inside the
2489
+
* `<label>` element that has an associated
2490
+
* [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be used instead.
2486
2491
*
2487
-
* Will wait until all specified options are present in the `<select>` element.
2492
+
* Returns the array of option values that have been successfully selected.
2493
+
*
2494
+
* Triggers a `change` and `input` event once all the provided options have been selected.
* @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See [working with selectors](https://playwright.dev/docs/selectors) for more details.
2504
2511
* @param values Options to select. If the `<select>` has the `multiple` attribute, all matching options are selected, otherwise only the first option matching one of the passed options is selected. String values are equivalent to `{value:'string'}`. Option
2505
2512
* is considered matching if all specified properties match.
@@ -3889,10 +3896,13 @@ export interface Frame {
3889
3896
3890
3897
/**
3891
3898
* This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/docs/actionability) checks, focuses the
3892
-
* element, fills it and triggers an `input` event after filling. If the element is inside the `<label>` element that has
3893
-
* associated [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), that control will be
3894
-
* filled instead. If the element to be filled is not an `<input>`, `<textarea>` or `[contenteditable]` element, this
3895
-
* method throws an error. Note that you can pass an empty string to clear the input field.
3899
+
* element, fills it and triggers an `input` event after filling. Note that you can pass an empty string to clear the input
3900
+
* field.
3901
+
*
3902
+
* If the target element is not an `<input>`, `<textarea>` or `[contenteditable]` element, this method throws an error.
3903
+
* However, if the element is inside the `<label>` element that has an associated
3904
+
* [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), the control will be filled
0 commit comments